代码之家  ›  专栏  ›  技术社区  ›  Goran_Ilic_Ilke

如何在VSC终端上实现平滑滚动?

  •  0
  • Goran_Ilic_Ilke  · 技术社区  · 7 年前

    我在VSC工作,写nodejs,我在长终端输出中面临一个滚动问题,如果我使用滑块,在终端右侧滚动的行太多太快,所以,问题是,我们在集成终端中是否有平滑滚动选项,可以轻松读取输出,并用箭头逐行显示,还是必须使用另一个外部终端? 谢谢

    0 回复  |  直到 4 年前
        1
  •  6
  •   Mark    6 年前

    在vscode v1中。42(2020年2月初)与终端相关的两个新命令 鼠标滚轮 将引入滚动灵敏度:

    滚动灵敏度

    终端的滚动灵敏度现在可以独立配置 使用新设置的编辑器的 terminal.integrated.mouseWheelScrollSensitivity terminal.integrated.fastScrollSensitivity .

    看见 https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_42.md#scrolling-sensitivity


    感谢评论中的@Sean和@user9811991指出设置是一个乘数。我的终端通常一次滚动三行,为了让它只滚动一行,我必须设置 航空站集成的鼠标滚轮灵敏度 0.08 .


    也看到 Scrolling the terminal line by line from the keyboard 对于将终端滚动一行的键盘命令: workbench.action.terminal.scrollUp Ctrl键 - 中高音 - 翻页

        2
  •  -1
  •   Andronicus    4 年前

    只需将这些行添加到设置中。json文件,它将立即生效。

    "terminal.integrated.fastScrollSensitivity" :1 ,
    "terminal.integrated.mouseWheelScrollSensitivity":0.1
    

    我添加了0.1的值,因为这对我来说更好,你可以选择你的最佳点。

    settings.json file , where you need to add the above answered values