【问题标题】:Format PHP code in Zend Studio在 Zend Studio 中格式化 PHP 代码
【发布时间】:2014-05-25 06:17:14
【问题描述】:

我正在使用 zend studio IDE 编写代码。

我使用代码格式化程序来格式化我的代码。大多数代码由代码格式化程序格式化,但不是全部。

我想要什么,

$is_admin = $this->logged_user->isAdmin(); 

格式应该和

一样
$is_admin = $this->logged_user->isAdmin(); 

不喜欢

$is_admin = $this->logged_user
                 ->isAdmin();

有什么想法吗?

【问题讨论】:

标签: php zend-framework code-formatting


【解决方案1】:

Zend Studio 11.0

Window -> Preferences -> PHP -> Code Style -> Formatter -> (button) Edit -> (tab) New Lines:

在方法调用后插入新行,链接时至少:0

威尔沃 ;)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-03-12
    • 1970-01-01
    • 2010-10-25
    • 2014-01-07
    • 2023-03-17
    • 2018-10-27
    • 1970-01-01
    • 2019-04-14
    相关资源
    最近更新 更多