Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html VS代码关闭自动格式化程序的包装属性_Html_Visual Studio Code_Vscode Settings - Fatal编程技术网

Html VS代码关闭自动格式化程序的包装属性

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=

我有以下html代码:

  <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