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

后端 未结 5 1614
梦毁少年i
梦毁少年i 2021-01-31 00:55

Usually when I use VS Code, very first thing I do on new document is command: \"Toggle Word Wrap\" or Alt+Z. I tried looking into User Settings, but I didn

5条回答
  •  花落未央
    2021-01-31 01:13

    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.

提交回复
热议问题