[英]VS Code line break or wrap
When I write code in Visual Studio Code, and the line gets long, It doesn't break.当我在 Visual Studio Code 中编写代码并且行变长时,它不会中断。 It goes past the edge of the screen and that is rather annoying.
它越过屏幕边缘,这很烦人。 What I want is for the line to break and then go on below, I believe this is called wrap or breaking I'm not sure.
我想要的是断线然后在下面继续,我相信这被称为换行或断线,我不确定。 I use a split screen on my computer so only one half is my code editor and the other half is my project so I can see as I update it.
我在我的电脑上使用分屏,所以只有一半是我的代码编辑器,另一半是我的项目,所以我可以在更新时看到它。 Any help?
有什么帮助吗?
There's a setting for that called editor.wordWrap
.有一个名为
editor.wordWrap
的设置。
You can search the settings for "wrap" and set some additional customization to how you want VSCode to behave when wrapping text.您可以搜索“换行”的设置,并根据您希望 VSCode 在换行时的行为方式设置一些额外的自定义。
Ctrl+Shift+P
to open command palette and type wrap
there. Ctrl+Shift+P
打开命令面板并在那里输入wrap
。 You will easily find the option and also its hotkey - Alt+Z
.您将轻松找到该选项及其热键 -
Alt+Z
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.