2011-03-28 27 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中配置。

所有的設置都選擇'不包裝'。