【发布时间】:2017-06-21 21:15:59
【问题描述】:
我一直在努力让 Eclipse 像 vim 缩进那样格式化我的 php 数组。
eclipse 的作用(按 CTRL+SHIFT+F)
<?php
$array = array(
'key1' => 'value1',
'key2' => array(
'child_key1' => 'child_value1',
'child_key2' => 'child_value2',
),
);
vim 做了什么(按键:gg=G)
<?php
$array = array(
'key1' => 'value1',
'key2' => array(
'child_key1' => 'child_value1',
'child_key2' => 'child_value2',
),
);
我已经尝试在 Preferences>PHP>Code Style>Formatter and Preferences>PHP>Editor>Templates 中查找,但没有找到任何东西。
提前致谢。
可汗
【问题讨论】:
标签: php arrays vim eclipse-pdt indentation