Smooth scroll in Visual Studio code

前端 未结 2 2031
春和景丽
春和景丽 2021-02-07 06:06

Does Visual studio code have smooth scroll ?

If yes please help me.

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

相关标签:
2条回答
  • 2021-02-07 06:45

    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

    0 讨论(0)
  • 2021-02-07 06:55

    // 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.

    Update November 2020

    VS Code has been updated and its settings UI also has changed. So to enable smooth scrolling in VS Code. Go to settings and just search smooth you can just enable this setting to enable smooth scrolling.

    0 讨论(0)
提交回复
热议问题