Zend Studio formatter uses wrong format

╄→гoц情女王★ 提交于 2019-12-24 00:46:24

问题


I am using ibuildings ZF. When I press Ctr+Shift+F the code is formated this way

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

but I want to be formatted that way

$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');
}

how to configure this?


回答1:


The formatter can be configured in Window > Preferences > PHP > Code Style > Formatter > Edit... > Line Wrapping .

All the Settings are choose 'Do not wrap'.



来源:https://stackoverflow.com/questions/5455869/zend-studio-formatter-uses-wrong-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!