Reputation: 379
is there a way to adjust the speed at which the code scrolls when highlighting using the cursor? If I need to highlight more code than I see in the normal view I will usually use my mouse to highlight from the top and move it down to the bottom.
In other text editors the code will scroll up and the highlighting continue at a reasonable pace.
In VS Code if you do this it will speed up incredibly fast, leading me to many times reach the end of the code. This is in the matter of pixels. Is there any way to adjust this speed?
Upvotes: 24
Views: 3521
Reputation: 1327204
VSCode 1.72 (Sept. 2022) should help, with PR 161378, as it does re-implement how dragging auto-scrolls is done in the editor.
This is done mainly in src/vs/editor/browser/controller/mouseHandler.ts
, where new methods like TopBottomDragScrollingOperation #_getScrollSpeed()
will help manage the selection dragging scroll speed.
You can test it out today, with VSCode Insiders.
Upvotes: 0
Reputation: 8673
You can edit settings.json
and add this line: "editor.mouseWheelScrollSensitivity": 0.005
For me, that speed is just fine.
I also read that some have solved the problem with:
Go to File > Preferences > Settings. Search for: mouseWheelScrollSensitivity
, change it for 0.01
Try also to enable smooth scrolling
as in the picture:
Upvotes: 3
Reputation: 50208
This is an active bug, as reported here. The quick fix is to add the following to your user settings:
"editor.smoothScrolling": true
Upvotes: 9