作者:Karson2012 | 来源:互联网 | 2023-02-12 16:45
当我格式化HTML文件时,VS Code正在堆叠元素属性。有什么办法可以禁用此功能?
1> Gama11..:
默认设置是:
"html.format.wrapAttributes": "auto"
随着"auto"
意思是:
仅在超过行长时换行属性。
线长在其他设置中定义,默认为120
:
// Maximum amount of characters per line (0 = disable).
"html.format.wrapLineLength": 120
因此,将设置"html.format.wrapLineLength"
为0
应该可以为您提供所需的行为。