microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.71k stars 29.08k forks source link

Setting for Selection Dragging Scroll Speed #40890

Closed jabacchetta closed 2 years ago

jabacchetta commented 6 years ago

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.

Tyriar commented 6 years ago

What platform are you on?

jabacchetta commented 6 years ago

VSCode Version: 1.19.1 OS Version: macOS 10.13.2

Reproduces without extensions: Yes

dguisinger commented 6 years ago

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

jabacchetta commented 6 years ago

The following setting fixes this:

"editor.smoothScrolling": true

atomiks commented 5 years ago

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

zzador commented 5 years ago

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.

mullim commented 5 years ago

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.

ghost commented 5 years ago

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.

jtbrower commented 4 years ago

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.

nistre commented 3 years ago

It's been a year and setting editor.smoothScrolling to true does make this usable. Should this be closed?

niclasmattsson commented 3 years ago

Enabling smoothScrolling is NOT a fix for this, because:

3.5 years is more accurate BTW...

1024th commented 3 years ago

SmoothScrolling doesn't solve the issue perfectly.

Why is it so hard to add a setting for selection dragging scroll speed?

WarrenWeckesser commented 3 years ago

Please fix this. The default dragging scroll speed is simply too fast.

thedoc31 commented 3 years ago

This drives me crazy all the time. Both horizontal and vertical scrolling while selecting lines is MUCH MUCH too fast. Using Big Sur 11.4 and a Logitech corded USB mouse.

fan3cn commented 3 years ago

This also bothers me too much recently. I came from IntelJ and now switch to Visual Studio, can't image such a small and obvious bug can exist for 3 years remaining unfixed.

singh-karan-7 commented 3 years ago

Love Visual Code, but this selection scrolling is really annoying. Should be an easy fix.

ikeller96 commented 3 years ago

Does anyone know if this could possibly have anything to do with MacOS settings as well? I am also seeing this scrolling issue. It's extremely difficult to select the actual lines that I want because it scrolls through the page way too quickly.

airda2895 commented 3 years ago

I'm having this issue as well... I think the best workaround for now, is using shift + arrow keys, or in case of using an external mouse, using its wheel instead of moving the cursor to top/bottom. I'm on a MacBook Air and I use the trackpad, so in my case, I use shift + arrow keys for selecting code.

muratgozel commented 2 years ago

Maybe we should have chosen "AI Based Selection Dragging Speed" as a title instead of just "Selection Dragging Speed"...

andres-alban commented 2 years ago

When I got the release notes for version 1.62 I decided to test if the problem had been fixed in the new version by doing selection dragging in the release notes. It turns out that the speed is fine in the release notes tab and the markdown preview. However, it is still too fast in the text editor...

Vrajs16 commented 2 years ago

It really is annoying to highlight code with a mouse. I love this editor and use it more and more with all my languages. Please fix this issue. Thank you vscode team.

neodon commented 2 years ago

This is so aggravating, and enabling smooth scrolling is only a partial hacky fix. Basically I can't use horizontal split views because of this. (Maybe I'm exaggerating a bit :)

The other thing that needs a user-configurable setting is how many lines or pixels away from the top or bottom of the view should trigger this auto-scrolling feature.

If I highlight text within 5 lines of the top or bottom of the view, it starts scrolling at like 9,000 lines-per-second:

https://user-images.githubusercontent.com/82944/152852594-39172594-684c-4089-ae80-bd74f8e49a33.mp4

Despite my annoyance with this particular thing, I want to make sure you all know that you are doing awesome work and overall I love VSCode!

jonathanbouren commented 2 years ago

Still a problem. Found this thread while looking for a solution, it’s quite aggravating. scroll down, miss by 200 lines. Scroll back up. Miss by 100 lines.

miracuruzrh commented 2 years ago

Still a problem. Found this thread while looking for a solution, it’s quite aggravating. scroll down, miss by 200 lines. Scroll back up. Miss by 100 lines.

Same for me. But I think this behavior is just a view day for me. Before I had no scrolling issues. Anyone knows if this is from a recent update?

WarrenWeckesser commented 2 years ago

This is probably the same issue: https://github.com/microsoft/vscode/issues/32267

mz3 commented 2 years ago

CLICK (That's my seatbelt buckling as I prepare to expand my selection)

This would be great to fix. I personally don't know any developers with reflexes epic enough to actually use the mouse to select lines. Being able to do that saves a crazy amount of time. So many people are using VS code to build commercial software that fixing this would probably impact global GDP.

cbosoft commented 2 years ago

Enabling smooth scrolling worked for me on Version: 1.65.2 (Universal) on MacOS

Scratch that, it did not. It appeared to work.

It's a bit mad that this issue persists 5 years after it was first raised. Mouse selection is impossible for anything that spans more than a single monitor height!

leecasey commented 2 years ago

I'm guessing this is not going to be fixed? May have to move back to Android Studio....

yanpeng commented 2 years ago

plz fix this. a workaround: click the beginning of the region you want to select, then scroll down(or up) and shift-click the end of the region.

jdevng commented 2 years ago

Microsoft: Please stop working on features and fix this issue. Separate selection speed from scroll speed. I'm looking at nvim as an alternative.

jdevng commented 2 years ago

well stated. Problems like this make me wonder how bad does it have to be management wise for the engineers working on this that this problem isn't solved by now. To not address something that an average programmer uses up to every minute or so is unimaginable to me.

coreydbrown commented 2 years ago

This issue is absolutely infuriating. Highlighting a group of lines spanning more than the size of the screen is a task that almost every user of VS Code has to deal with, and often many times per day. Yet somehow it's impossible to carry out this simple task while using the mouse. I want to move up by 5 lines, not 500.

WarrenWeckesser commented 2 years ago

It would be nice if the VSCode devs could learn a lesson from other software that gets this right. When the cursor is just a little ways out of the text area, scroll slowly. Speed up the scrolling as the cursor moves further away from the text area.

muratgozel commented 2 years ago

I switched to webstorm, it's better in many ways. After leaving Atom, I'm happy again.

Mausinator08 commented 2 years ago

I've been experiencing the same thing as every one else pretty much since VS Code was officially released. If not the entire time. It happens on Windows 10 and 11 x64. It also happens to us at work on both M1 Macbook Pro and Intel based Macbook Pro. It also happened in my previous job this year on Ubuntu Desktop (latest). I'll see if I can't find a usable work around, short of smooth scrolling setting.

Great IDE by the way, I use it for just about anything! Even C++ and C#! (I got tired of navigating layered menus in VS 2019 and 2022 so now I write cmake scripts instead.)

Mausinator08 commented 2 years ago

OK no setting regarding scroll, speed, drag, select, mouse, screen edge, or cursor seems to help. I wonder if there is at least an extension that can solve this for now? Or if one can even be made for something like this?

yaronhb commented 2 years ago

It would be nice if the VSCode devs could learn a lesson from other software that gets this right. When the cursor is just a little ways out of the text area, scroll slowly. Speed up the scrolling as the cursor moves further away from the text area.

Absolutely!!!!

s-devaney commented 2 years ago

This is such a basic usability issue, come on guys...

DerekWSmith commented 2 years ago

This is still an issue. And totally agree: absolutely frustrating.

benjibst commented 2 years ago

pls fix

YuzheHao commented 2 years ago

I am glad to find the thread: now I know I don't have a hand-shaking problem! I don't feel anything changed after setting editor.smoothScrolling to true.

Please fix this error, sometimes it can be really frustrating.

petrvalkoun-gooddata commented 2 years ago

still broken, please fix

Bruledamien commented 2 years ago

+1

felixfaire commented 2 years ago

I am also experiencing this very frustrating issue. I appreciate that this fix may be non trivial (otherwise developers ignoring this very active thread seems strange), but it is the only major usability bug / issue I have every day with VS Code.

WarrenWeckesser commented 2 years ago

The label on this issue should be bug, not feature-request.

benjibst commented 2 years ago

thank you very much, in which version of vs code can i find this fix?

Alexandru Dima @.***> schrieb am Mi., 21. Sep. 2022, 11:51:

Closed #40890 https://github.com/microsoft/vscode/issues/40890 as completed via #161378 https://github.com/microsoft/vscode/pull/161378.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/40890#event-7429308273, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASELDNUFPVAW6273FPOU3RDV7LLDHANCNFSM4EJYOBZQ . You are receiving this because you commented.Message ID: @.***>

rzhao271 commented 2 years ago

@BetterRage you can get VS Code Insiders to try the change out now, or wait for the next stable version that will be out next week.

GeylanKalafMohe commented 2 years ago

what is the option called in vscode settings?

Mausinator08 commented 2 years ago

I dont think there is one. It was simply implemented to behave this way by default. I can now drag scroll in a controlled manner depending on how far my cursor is from where I am dragging.

Someone please correct me if I'm wrong about the setting. I did look and use the settings search.

If it's still too fast, maybe your sensitivity setting for the mouse wheele ties into this new feature? Again, someone correct me if that's not the case.

GeylanKalafMohe commented 2 years ago

I dont think there is one. It was simply implemented to behave this way by default. I can now drag scroll in a controlled manner depending on how far my cursor is from where I am dragging.

Someone please correct me if I'm wrong about the setting. I did look and use the settings search.

If it's still too fast, maybe your sensitivity setting for the mouse wheele ties into this new feature? Again, someone correct me if that's not the case.

Looked into it and yes its that way by default now with the new update. But how can I change the sensitivity setting for the mouse wheel on mac in VSCode?