Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable word wrap in VS Code

I have the following settings in VS code to disable word wrap

  "editor.wordWrap": "off",
  "editor.wordWrapColumn": -1

Word wrap is still not turned off. This makes VS Code really unfriendly to use on my laptop with a small screen.

Is there some additional setting I can use?

I am on 1.17.1.

like image 375
user1283776 Avatar asked Oct 12 '17 19:10

user1283776


People also ask

How do I turn off word wrap in VS Code?

Basic Editing in Visual Studio Code By default, editor. wordWrap is off but if you set to it to on, text will wrap on the editor's viewport width. "editor. wordWrap": "on" You can toggle word wrap for the VS Code session with ⌥Z (Windows, Linux Alt+Z).

How do I turn off word wrap?

Right-click the control for which you want to enable or disable text wrapping, and then click Control Properties on the shortcut menu. Click the Display tab. Select or clear the Wrap text check box.

Why word wrap is not working in VS Code?

Go to File->Preferences->Settings. Set the workspace tab (but it's the same with User tab) Set the editor: Word Wrap settings to wordWrapColumn. Set the Editor: Word Wrap Column to 80.

How do I stop horizontal scroll in VS Code?

Use Ctrl + E, then Ctrl + W for disable horizontal scrolling.


1 Answers

Are you using markdown? vscode changes some default settings:

"[markdown]": {
    "editor.wordWrap": "off"
}
like image 161
Alex Avatar answered Oct 10 '22 17:10

Alex