Html VS代码关闭自动格式化程序的包装属性
我有以下html代码:Html VS代码关闭自动格式化程序的包装属性,html,visual-studio-code,vscode-settings,Html,Visual Studio Code,Vscode Settings,我有以下html代码: <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin=
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css"
integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
没有设置可将其关闭。我尝试将其设置为“html.format.wrapatributes”:false
和“html.format.wrapatributes”:“
。他们没有帮助
我想知道如何设置VS代码,以便每次使用VS代码HTML自动格式化程序时,它不再将
integrity
属性包装到另一行?您应该能够选择preserve
或preserve aligned
您应该能够选择
保留
或保持对齐
html.format.wrapatributes:“对齐多个”有效吗?html.format.wrapatributes:“对齐多个”有效吗?
auto: Wrap when the line length is exceeded
force: Wrap all attributes, except first
force-aligned: Wrap all attributes, except first, and align attributes
force-expand-multiline: Wrap all attributes