禁用Visual Studio代码HTML属性定位

问题描述 投票:6回答:1

VS守则堆积元素的属性,当我格式化的HTML文件。有什么办法禁用此?

visual-studio-code vscode-settings
1个回答
5
投票

它的默认设置是:

"html.format.wrapAttributes": "auto"

随着"auto"含义:

总结属性超过了线的长度只有当。

线长度在不同的设置,缺省值为120定义:

// Maximum amount of characters per line (0 = disable).
"html.format.wrapLineLength": 120

所以"html.format.wrapLineLength"设置为0应该给你所期望的行为。

© www.soinside.com 2019 - 2024. All rights reserved.