建议一个选项,将 HTML 属性放在自己的行上,彼此对齐。 例如,转这个:
<button id="start-signout" class="button button-full" ng-click="vm.signout()" click-animation translate>AUTH.SIGN_OUT</button>
进入这个:
<button id="start-signout"
class="button button-full"
ng-click="vm.signout()"
click-animation
translate>AUTH.SIGN_OUT</button>
这已在依赖产品 Visual Studio Code 中
+1
由@Lukinos 修复。 谢谢!
做得好!
1.6.5 版本是否有预计到达时间? 我真的很想看到强制对齐功能进入 vscode!
vscode 1.23.1
"html.format.wrapAttributes": "强制对齐",
不起作用
VSCode 1.23.1
"html.format.wrapAttributes": "强制对齐"
不适用于 Vue SFC 模板
如果我们可以将这个“html.format.wrapAttributes”命令绑定到键盘快捷键,那就太好了。
最有用的评论
VSCode 1.23.1
"html.format.wrapAttributes": "强制对齐"
不适用于 Vue SFC 模板