- Instant help with your Developer coding problems

Toggle word wrap in VS Code

How to toggle word wrap in VS Code?

// OR

"editor.wordWrap": "on"

Word wrap is a basic feature in any code editor. It's no different in VS Code. There are multiple ways to switch word wrap on and off.

Solution 1

The quickest solution is to use the ALT + Z keyboard shortcut.

You can also quickly access it with your mouse by clicking on the menu item View -> Word Wrap .

Solution 2

You can control word wrap through the setting. By default, word wrap is off. Open the Settings panel File -> Preferences -> Settings . Type 'word wraps' into the search field and select the on value from the drop-down list.


Share "How to toggle word wrap in VS Code?"