2011-03-28 49 views
2

我正在使用ibuildings ZF。当我按Ctr + Shift + F键 代码格式化这样Zend Studio格式化程序使用错误格式

,但我想格式化这样

$adapter = $this->getAuthAdapter($form->getValues()); 
$auth = Zend_Auth::getInstance(); 
$result = $auth->authenticate($adapter); 
if (! $result->isValid()) { 
    $form->setDescription('Invalid input'); 
    $this->view->form = $form; 
    return $this->render('index'); 
} 

如何配置呢?

+0

60%够好吗? :) – overthetop 2011-03-28 07:45:35

+0

有人帮忙请问? – overthetop 2011-04-06 12:05:58

回答

1

格式化程序可以在Window> Preferences> PHP> Code Style> Formatter> Edit ...> Line Wrapping中配置。

所有的设置都选择'不包装'。