How do I turn on text wrapping by default in VS Code

╄→гoц情女王★ 提交于 2019-12-02 21:00:14
Katherine

The setting is now "editor.wordWrap": "on" which I set to "on" (the default is "off") and that activates word wrap on all my documents in Visual Studio Code.

See the release notes about Word Wrap changes for more info.

Have a look at the setting editor.wrappingColumn (see the docs for more information)

Update 2017-04-06:

Recently the setting changed (see here) to editor.wordWrap with several options:

We therefore decided to deprecate editor.wrappingColumn (with its -1, 0, >0 cases) in favor of editor.wordWrap.

Here are the new word wrap options:

editor.wordWrap: "off" - Lines will never wrap.
editor.wordWrap: "on" - Lines will wrap at viewport width.
editor.wordWrap: "wordWrapColumn" - Lines will wrap at the value of editor.wordWrapColumn.
editor.wordWrap: "bounded" - Lines will wrap at the minimum of viewport width and the value of editor.wordWrapColumn.

Version 1.32.3

If you don't want to edit any files you can just turn it on under user settings:

Code > Preferences > Settings > Text Editor

Type "wordwrap" in the search or scroll to bottom of the list just before the cursor section. You'll see it as "Word Wrap / Controls how lines should wrap."

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!