Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code - Horizontal Scrolling?

I am consulting you since I am dealing with something that bothers me about VSCode.

We are currently creating an application which is supposed to run locally so we do have a lot of base64 lines in our code. As you can imagine, these strings are quite large:

enter image description here

This is problematic for me (and my co-workers) since we are interested in this light-weight "Visual Studio"-like editor but can not avoid this line breaking from happening, which makes it very complicated to navigate certain scripts.

Is there an option to horizontally scroll the editor so the strings wont be hacked into window size creating this mess?

So far, I did not find anything that would help with my problem. Does anyone here have a clue what I'm after and where I could find it?

like image 585
N. Kuck Avatar asked Jun 09 '17 15:06

N. Kuck


People also ask

How do I turn off horizontal scrolling in VS Code?

Toggle Word Wrap Per File If you want to quickly toggle word wrap on and off per file in VS Code, then you can simply press ALT+Z on your keyboard, or go to View > Toggle Word Wrap.

How do you scroll in VS Code?

This is a feature you need to enable. Open your VS Code settings and search for sticky . Ensure Editor › Experimental › Sticky Scroll is enabled.

How do I turn off horizontal scrolling?

To hide the horizontal scrollbar and prevent horizontal scrolling, use overflow-x: hidden: HTML. CSS.

How do I enable smooth scrolling in VS Code?

How do you smooth scroll in Vscode? Hold the Shift key to Scroll horizontally. Hold Alt key to scroll text view by one page up/down.


1 Answers

Wordwrap is there to rescue from horizontal scrolling. Press Alt + z to toggle wordwrap on/off.

like image 93
supercontra Avatar answered Sep 28 '22 06:09

supercontra