ahinkle
ahinkle

Reputation: 2261

VSCode Scrolling to next line on long lines of code

When I highlight a long line of code - if I barely move my mouse to the row above or below it will automatically go to the beginning of the line. Really annoying for simple highlight and change edits. At the moment, I only use my arrow keys as an alternative.. or I have to be very careful and not get close to the row above and below the line I'm working on. I've attached a GIF as an example.

I've looked in the settings for "scroll" options and i'm unable to find anything. Anyone have any ideas?

enter image description here

https://giphy.com/gifs/3ohc1be4q9OaSsRIPu

Upvotes: 6

Views: 3331

Answers (1)

Alex
Alex

Reputation: 67473

Workaround. Use word wrap: "editor.wordWrap": "on"

You can even enable it temporarily (editor.action.toggleWordWrap alt+z)

enter image description here

Upvotes: 6

Related Questions