简体   繁体   English

如何在 VSCode 上配置自动缩进以不在 HTML 文本中间换行?

[英]How to configure auto indentation on VSCode to not break line in the middle of the HTML text?

I'm using the VSCode auto-indentation(Alt+ Shift+ f).我正在使用 VSCode 自动缩进(Alt+ Shift+ f)。 The VSCode is breaking the line in the middle of the text, example, look the content indentation of tag <b></b> : VSCode 在文本中间断行,例如,查看标签<b></b>的内容缩进:

<div>
    <div class="panel vpush-1">
        <b>WBTS-2297_RNC-50_WSET-SQM3G_PLMN-PLMN: Voice Radio Bearers Downlink BLER is too
            high</b>
    </div>
</div>

How can I configure to not break line in the middle of the text or configure VSCode to just increase the number of character to not happen this any more?如何配置不在文本中间换行或配置 VSCode 以增加字符数以不再发生这种情况?

Try this.尝试这个。

You can add "html.format.wrapLineLength": 0 in settings.json.您可以在 settings.json 中添加"html.format.wrapLineLength": 0

alternatively you can go to settings:或者,您可以 go 进行设置:

Settings -> Extensions -> HTML:
Format: Wrap Line Length
Maximum amount of characters per line (0 = disable).
0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM