Visual Studio 代码过多地包装了 html [英] Visual studio code wraps html too much

查看:30
本文介绍了Visual Studio 代码过多地包装了 html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 Visual Studio 代码更新到最新版本.

I have updated visual studio code to latest version.

它只是改变了 html 文件的格式.当我再次格式化时,我所有的 html 文件都会发生变化.

It just changed formatting in html files. All my html file changes when i format again.

它像我们在平板电脑模式下编码一样包装,留下如下所示的空白空间

It wraps like we are coding in tablet mode leaving empty space like below

谁能帮我解决这个问题.当不止一个开发人员在同一个项目上工作时,它就会产生问题.只是稍微不同版本的 Visual Studio 代码更改格式.

Can anyone help me with this. It creates issue when more then one developer is working on same project. Just slight different version of visual studio code changes format.

推荐答案

如果你想改变换行长度可以到Preferences -> Settings 并搜索用于 wrap.在那里您会找到 HTML › Format: Wrap Line Length 并且您可以更改该值.

If you want to turn the wrap line length you can go to Preferences -> Settings and search for wrap. There you will find HTML › Format: Wrap Line Length and you can change that value.

这篇关于Visual Studio 代码过多地包装了 html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆