【问题标题】:Eclipse PDT multiline array templateEclipse PDT 多线阵列模板
【发布时间】:2014-07-07 21:17:51
【问题描述】:

当我像这样键入一个新数组时:

return array(
    'test' => array()
);

然后当我输入换行符时,在内部数组括号内,eclipse 会这样做:

return array(
    'test' => array(
    // <- this indentation is made with tab instead of spaces
)
)

我在我的eclipse中设置了空格缩进,效果很好,但是当它扩展数组括号时,id会使用制表符进行缩进。

右括号的缩进级别也错误。

【问题讨论】:

    标签: php eclipse configuration formatting


    【解决方案1】:

    在 pdt 3.3.0(现在的 eclipse lun RC2)中,制表符和空格的问题已得到修复。

    第二个问题 - 无效缩进,已知错误(将在 3.3.1 中修复) - https://bugs.eclipse.org/bugs/show_bug.cgi?id=435798

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-01-02
      • 2010-09-29
      • 2010-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-01
      • 2013-05-23
      相关资源
      最近更新 更多