如何在Vscode中对齐多行数组

Tar*_*oar 7 visual-studio-code

PhpStrom 有一些设施,short array Align when multiline还有更多

这是一个例子

http://prntscr.com/pyfkc8

另一个链接

现在我想在 vs-code 中对齐数组......

我怎样才能做到这一点?

这是一个普通的数组

$x=array(
 0 => "zero",
 123122 => "one two three",
 251=> "two five"
);
Run Code Online (Sandbox Code Playgroud)

现在我想要这样

$x=array(
 0 => "zero",
 123122 => "one two three",
 251=> "two five"
);
Run Code Online (Sandbox Code Playgroud)

这可能是 vs-code 吗?

Leg*_*end 11

我认为您正在寻找名为“ALIGNMENT”的扩展

只需安装它并通过选择对齐您想要的代码部分即可。

这里是扩展列表: https://marketplace.visualstudio.com/search? term=tag%3Aalignment&target=VSCode&category=All%20categories&sortBy=Relevance

这是我正在讨论的扩展: https://marketplace.visualstudio.com/items?itemName =annsk.alignment