rabeeh_ta
rabeeh_ta

Reputation: 35

auto enter(nextline) the code as window size decreases in vs code?

I was using brackets editor and in brackets when the line is with the window code will use the next line enter image description here but in VS Code the code just goes on enter image description here in the same line which is frustrating I googled a lot of the settings but I just don't know what to search for.

i know there is some settings to be changed.

please help

Upvotes: 2

Views: 6638

Answers (2)

Jakub Wysocki
Jakub Wysocki

Reputation: 451

For Mac users: Press option + z

Upvotes: 1

Roman Marusyk
Roman Marusyk

Reputation: 24619

Try Alt+Z or in main menu View -> Toggle Word Wrap

Also you can enable it in settings.json

// Controls how lines should wrap.
//  - off: Lines will never wrap.
//  - on: Lines will wrap at the viewport width.
//  - wordWrapColumn: Lines will wrap at `editor.wordWrapColumn`.
//  - bounded: Lines will wrap at the minimum of viewport and `editor.wordWrapColumn`.
"editor.wordWrap": "on"

Or File -> Preferences -> Settings enter image description here

Upvotes: 7

Related Questions