Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make smooth scrolling in VSC terminal?

I'm working in VSC and writting nodejs and I am faced with a scroll problem in long terminal outputs, scroll on the right side of terminal with slider goes too many rows too fast if I use them, so, question is, do we have smooth scroll option in integrated terminal to read output easy and line by line with arrows or we must use another external terminal for that? Thanks.

like image 679
Goran_Ilic_Ilke Avatar asked Jul 07 '19 10:07

Goran_Ilic_Ilke


People also ask

How do you smooth scroll in VS Code?

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.


1 Answers

In vscode v1.42 (early February, 2020) two new commands related to terminal mouse wheel scroll sensitivity will be introduced:

Scrolling sensitivity

The terminal's scrolling sensitivity can now be configured independent of the editor using the new settings terminal.integrated.mouseWheelScrollSensitivity and terminal.integrated.fastScrollSensitivity.

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


Thanks to @Sean and @user9811991 in the comments for pointing out that the setting is a multiplier. My terminal normally scroll three lines at a time, to get it to scroll only one line I had to set terminal.integrated.mouseWheelScrollSensitivity to 0.08.


Also see Scrolling the terminal line by line from the keyboard for a keyboard command that scrolls the terminal by one line: workbench.action.terminal.scrollUp Ctrl-Alt-PageUp

like image 177
Mark Avatar answered Sep 23 '22 21:09

Mark