Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 786
rabeeh_ta Avatar asked Feb 07 '26 23:02

rabeeh_ta


1 Answers

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

like image 155
Roman Marusyk Avatar answered Feb 12 '26 05:02

Roman Marusyk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!