Eclipse PHP格式化程序 - 仅用于关联数组的换行符

时间:2015-06-10 10:13:25

标签: eclipse-pdt formatter

通过使用Eclipse PHP Formatter自定义规则,是否可以将普通数组格式化为此

$a = [1, 2, 3];

和像这样的关联数组

$a = [
    'foo' => 'bar',
    'foo2' => 'bar2'
];

我尝试了各种选择但没有成功。

1 个答案:

答案 0 :(得分:0)

你不能同时拥有(PDT 3.5 Mars中的状态)。数组格式设置对于经典和关联数组都是全局的。

请在PDT bugzilla上创建增强请求:https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT