Reputation: 35
I was using brackets editor and in brackets when the line is with the window code will use the next line
but in VS Code the code just goes on
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
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
Upvotes: 7