Smooth scroll in Visual Studio code

2020-06-12 02:57发布

问题:

Does Visual studio code have smooth scroll ?

If yes please help me.

It would be nice to scroll through long codes with smoother effect.

回答1:

// Controls if the editor will scroll using an animation

  "editor.smoothScrolling": false,

// Enable this workaround if scrolling is no longer smooth after restoring a minimized VS Code window. This is a workaround for an issue (https://github.com/Microsoft/vscode/issues/13612) where scrolling starts to lag on devices with precision trackpads like the Surface devices from Microsoft. Enabling this workaround can result in a little bit of layout flickering after restoring the window from minimized state but is otherwise harmless.

  "window.smoothScrollingWorkaround": false

Those are the defaults, set to true for smooth scrolling (second setting only if you need it).


Also see smooth scrolling in lists and trees: v1.46 release notes adds this setting:

workbench.list.smoothScrolling for the explorer, etc.



回答2:

I was also looking for this and found out that they do have an inbuilt setting for this in vscode.

Under Settings > In the search bar, search for "scroll" > Editor: Smooth Scrolling