Vscode: Setting for Selection Dragging Scroll Speed

Created on 28 Dec 2017  路  9Comments  路  Source: microsoft/vscode

As someone else documented on Stack Overflow, when attempting to highlight code and scrolling above/below the current view, the scroll speed makes it impossible to accurately highlight the desired lines of code.

The expected behavior is a more controlled speed, similar to many other editors.

editor-core feature-request

Most helpful comment

The following setting fixes this:

"editor.smoothScrolling": true

All 9 comments

What platform are you on?

VSCode Version: 1.19.1
OS Version: macOS 10.13.2

Reproduces without extensions: Yes

Please come up with a solution for this, it doesn't need to be a feature request for adding a setting, just make the application work correctly. You have no idea how many times I am swearing at the your application every day when i go to select just 2-3 lines of code and within 1 second 10 pages fly by.

This is a bug in the editor. Running VS Code 1.22.2 on OS X 10.13.2

The following setting fixes this:

"editor.smoothScrolling": true

This is still a problem... "editor.smoothScrolling": true doesn't seem to do anything for me. The autoscroll is way too fast and doesn't respond exponentially as the cursor moves closer to the top/bottom of the editor boundary, it's fast instantly.

Please copy the behavior of Atom or react-beautiful-dnd

Can confirm the problem. While selecting text, touching the upper or lower border of the current editwindow to scroll up or down respectively activates hyperspeed within the file. As this effect is impressive to watch it can make selection a little bit unprecise in certain situations. I would strongly recommend to make the selection-scroll-speed an adjustable variable in the settings or at least in the settings.json.

However you (the devs) made a very useful and flexible IDE so far. Finding myself using it more and more for every language I have to code in.

Although smooth scrolling is a quick fix to this, I think a setting would be beneficial so that we can have more control over the speed. With smooth scrolling set to false, it is way too fast, but when set to true it's a bit too slow.

This is still a problem for me, even with smooth scrolling, as if you were to highlight over the right-hand side scroll bar, it'll move the screen instantly to the end of the line. With the high speed also, it is common to accidentally move the mouse above or below a line, which will instantly move the screen to the end of the line of the new mouse line.

Edit # 2 The more I work with using the editor.smoothScrolling, it just doesn't slow it down enough to make selection with the mouse usable. Using shift+arrow up and arrow down works fine.

Edit : Adding "editor.smoothScrolling": true makes the scrolling work just fine for me. I am glad to have found a solution to this.

Great job on a great product, it doesn't crash every day like that overpriced Visual Studio Pro subscription I have had for nearly a decade.

Was this page helpful?
0 / 5 - 0 ratings