Zend Studio 格式化程序使用错误的格式
我正在使用ibuildings ZF。当我按 Ctr+Shift+F 时 代码是这样格式化的
$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');
}
,但我想以这种方式格式化,
$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');
}
如何配置?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
格式化程序可以在窗口 > 中配置。首选项> PHP>代码风格>格式化程序>编辑...>>换行。
所有设置均选择“不换行”。
The formatter can be configured in Window > Preferences > PHP > Code Style > Formatter > Edit... > Line Wrapping .
All the Settings are choose 'Do not wrap'.