如何解决VS Code关闭自动格式化程序的wrapAttributes
我有以下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">
每当我通过按下shift+Alt+f",it just wraps the
完整性attribute to the next line. I would like to keep everything on one line. I did some research,and found out the setting that control it is
html.format.wrapAttributes`使用VS代码的自动格式化程序时,但根据文档,仅有四个设置是:
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
没有设置将其关闭。我试图将其设置为"html.format.wrapAttributes": false
和"html.format.wrapAttributes": ""
。他们没有帮助。
我想知道如何设置VS代码,以便每次使用VS代码HTML自动格式化程序时,都不再将integrity
属性包装到另一行吗?
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。