小编Keh*_*han的帖子

Eclipse PDT:如何让它像VIM一样格式化我的PHP数组?

我一直在努力让Eclipse像vim缩进那样格式化我的php数组.

日食的作用(按CTRL + SHIFT + F)

<?php
$array = array(
'key1' => 'value1',
'key2' => array(
'child_key1' => 'child_value1',
'child_key2' => 'child_value2',
),
);
Run Code Online (Sandbox Code Playgroud)

vim做什么(按键:gg = G)

<?php
$array = array(
  'key1' => 'value1',
  'key2' => array(
    'child_key1' => 'child_value1',
    'child_key2' => 'child_value2',
    ),  
  );  
Run Code Online (Sandbox Code Playgroud)

我已经尝试查看首选项> PHP>代码样式>格式化程序和首选项> PHP>编辑器>模板,但没有找到任何东西.
提前致谢.
克旱

php arrays vim eclipse-pdt indentation

4
推荐指数
1
解决办法
5367
查看次数

标签 统计

arrays ×1

eclipse-pdt ×1

indentation ×1

php ×1

vim ×1