visual studio code - How to switch word wrap on and off in VSCode? -
when using code files, typically don't need longer lines wrap around. however, .md
files in fact rather useful. however, i can't seem find option enable word wrap longer lines wrapped.
to reproduce, open vscode resized small-enough window, , enter following text in new document:
this test lorem ipsum. test lorem ipsum. test lorem ipsum. test lorem ipsum. test lorem ipsum. test lorem ipsum. test lorem ipsum. test lorem ipsum. test lorem ipsum. linebreak before this.
the effect this:
i'm trying horizontal scrollbar stay away, having line 1 wrap around @ right side of window.
i've done few things answer own question:
- search stack overflow: 0 results @ time of writing this;
- meticulously going through menu of vscode: didn't find it;
- using command palette "wrap": gives no matching commands.
perhaps it's not possible, , i'd need file feature request? or missing something?
note i'd able turn on , off quickly. one, @panagiotiskanavos mentioned in comments this solution change wrapping behavior in settings, i'm looking quick command or menu option (much notepad++ , sublime text 2 have).
since v1.0 can toggle word wrap:
- with new command
editor.action.togglewordwrap
, or - from
view
menu (view > toggle word wrap), or - using alt+z keyboard shortcut (for mac: ⌥+z).
it can controlled following settings:
editor.wordwrap
editor.wordwrapcolumn
editor.wrappingindent
known issues:
- pressing end key twice should move cursor end of physical line https://github.com/microsoft/vscode/issues/1424
Comments
Post a Comment