How can I switch word wrap on and off in Visual Studio Code?
How can I switch word wrap on and off in Visual Studio Code?
Since v1.0 you can toggle word wrap:
- with the new command editor.action.toggleWordWrap, or
- from the View menu (*View** → Toggle Word Wrap), or
- using the ALT+Z keyboard shortcut (for Mac: ⌥+Z).
It can also be controlled with the following settings:
- editor.wordWrap
- editor.wordWrapColumn
- editor.wrappingIndent
Known issues:
If youd like these bugs fixed, please vote for them.
Go to menu File → Preferences → User Settings.
It will open up Default Settings and settings.json
automatically. Just add the following in the settings.json
file and save it. This will overwrite the default settings.
// Place your settings in this file to overwrite the default settings
{ editor.wrappingColumn: 0 }
How can I switch word wrap on and off in Visual Studio Code?
wrappingColumn
has been deprecated in favour of wordWrap
.
Add this line to settings.json to set wordWrap on by default:
editor.wordWrap: on
or open user settings:
Mac: ⌘ + ,
Windows: Ctrl + ,
Then search for wordWrap or scroll through the Commonly Used settings to find it and select on