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.
In v1.71 smooth scrolling will be improved, see Release Notes: Terminal Smooth Scrolling.
The terminal now supports smooth scrolling which will animate
scrolling over a short period to help orient yourself after scrolling,
like the feature that is also available in the editor and lists. To
enable it set:
json "terminal.integrated.smoothScrolling": true
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
Just add these lines into settings.json file and it will take effect instantly.
"terminal.integrated.fastScrollSensitivity" :1 ,
"terminal.integrated.mouseWheelScrollSensitivity":0.1
I've added the values as 0.1 because it was better for me , you can choose your sweet spot.
settings.json file , where you need to add the above answered values
It has been implemented in xterm
To enable smooth scrolling in VSCODE terminal, go to your settings, search for terminal smo and
simply toggle it on:
Related
I came from PyCharm, and starting in VSCode, when I print a lot of content in the output window in VSCode, the output window will stay from the output of the last executed content, and I need to scroll all the way down to see the last part of the new output content.
Is there a way I can set it up so the output window will automatically go to the bottom of the output content? I have googled and searched stackoverflow, without any luck.
Here is some visual to show what I mean
I need to manually scroll down to see the last content
Two things to try:
In your second screenshot, there is a padlock in the top right of your output window. That enables/disables auto scrolling. You currently have is disabled. Try enabling it.
There is a setting called output.smartScroll - I wonder if disabling that might achieve what you want (if you are clicking in the output box at least).
I am working in Visual Studio Code. I was copying something when I hit the wrong shortcut key (not sure which one) and the editor window zoomed out (to about half the size). See image below.
Note that this is not the View > appearance > zoom setting at work as the whole program/window is not zoomed in or out. Either way, I selected to reset to default zoom and it did not fix the issue. Rather, ONLY the editor window is zoomed out.
Does anyone have any idea how to fix this?
It looks like the editor.action.fontZoomOut command was run. Bring up the command palette (ctrl+shift+p) and type "font zoom reset" to find the command to revert.
I have a 2 monitor setup. One monitor I have setup as vertical as it's easier to read through long code.
The way I have VSCode setup, is that I have 2 separate VSCode windows open for the same workspace (by pressing CTRL + K, then O). One window on the regular monitor, and one for the vertical one. All works fine.
However the issue that I have, is that on the vertical monitor, due to the aspect ratio, the font size of VSCode is too big so I have to zoom out a bit with the built in VSCode zoom function (CTRL +/-). This works fine and I can adjust it so it's perfectly readable. Unfortunately when I zoom, it zooms on all open VSCode windows, including the window on my main monitor. The text there then becomes too small.
How can I have individual zoom levels for each open VSCode window?
There is a setting Editor: Mouse Wheel Zoom. If you turn this on you can zoom with the Ctrl key and mouse scroll wheel, and it only affects the code editors in the current VSCode window.
Dude I am planning to buy a monitor and placing it Vertically so that's why I am confirming how to see the code in the vertical format. Like I use ESLint to prettify my code and I want to set the width of my code to de static so that it should not exceed.
AND on to your problem, there is a setting in VS code to set the font of your code changes with the scroll you should use that.
That will be the bare minimum to work.
Hope this helped.
Short Answer
ctrl + shift + p
type editor font...
Choose among the three options.
This gives us individual editor font zoom levels per workspace window.
Longer Answer
The original question has two bits:
"have 2 separate VSCode windows open for the same workspace",
"individual zoom levels for each open VSCode window?"
While VSCode doesn't support individual window zoom levels per workspace, it does support individual editor font zoom levels per workspace. That's what the short answer provides.
See https://github.com/microsoft/vscode/issues/72011
In Visual Studio Code, there is a thing similar to command prompt in windows. It is called Terminal. In the past, I normally opened more than 3 tabs of this Terminal. However, in recent updates it displays this error when I try to open more than 3 tabs.
Not enough space to split terminal.
Is there a solution or a workaround for this?
Workaround:
Menu: View -> Appearance -> Toggle Panel Position (it moves terminals to the bottom) or right-click the "TERMINAL" or other tab and select "Move Panel to Bottom".
You can now open an additional terminal (or more) and then use the same menu option to move them back to the right and it will keep the additional terminals open.
There is a workaround - at least when You're using Ubuntu. You just have to unmaximize the window and resize it to make it bigger then Your screen size. Then You can split the terminal and can freely go back to initial window size.
Unfortunately, as far as I know, Windows won't allow You to have a window bigger that Your screen size. I don't know about Mac though.
Is it possible to scroll the terminal using the keyboard in Visual Studio Code line by line? I often find I need to look back in the REPL and using the mouse is pretty unergonomic.
If you search for scroll in the keyboard shortcuts you will see a few that apply to the terminal, including
Ctrl-Alt-PageUp
that will scroll the terminal up by a line. You could always rebind that if you wish.