在 Visual Studio 代码中,如何扩展最大线宽 [英] in Visual Studio code, how to extend the maximum line width

查看:29
本文介绍了在 Visual Studio 代码中,如何扩展最大线宽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论我做什么,我都不能将行设置为大于 80 个字符.我进入设置并将所有设置为160,但无济于事.我有更漂亮的,但我不知道如何查看它的配置文件.你知道如何放大最大线长吗?我正在开发打字稿(准确地说是角度).

No matter what I did, I can't set the line to be bigger than 80 characters. I went in settings and set all to 160, but to no avail. I have prettier, but I don't know how to see its config file. Do you know how to enlarge the maximum line length? I am developing typescript (angular to be precise).

推荐答案

要完全禁用包装:

设置 >编辑器:自动换行 >关闭

Settings > Editor: Word Wrap > Off

要将换行设置为第 160 列:

To set the wrapping to the 160th column:

设置 >编辑器:自动换行 >wordWrapColumn

Settings > Editor: Word Wrap > wordWrapColumn

设置 >编辑器:Word Wrap Column >160

Settings > Editor: Word Wrap Column > 160

或者将以下内容添加到您的 settings.json:

Or add the following to your settings.json:

"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 160

您可以通过按 F1 并输入 settings.json 来打开设置文件.

You can open the settings file by pressing F1 and typing settings.json.

这篇关于在 Visual Studio 代码中,如何扩展最大线宽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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