Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: Turn auto scrolling permanently ON

In Visual Studio Code, is there any way to force the auto-scrolling option of the Output panel permanently enabled? At the moment I have to click on the lock button every time I build my project to disable the scroll lock or better to say enable the auto-scrolling feature and this is so annoying.

I took a look at the settings but couldn't find any relevant parameter there.

Any ideas?

like image 615
Alireza Hosseini Avatar asked Nov 14 '19 11:11

Alireza Hosseini


People also ask

How do I make my page scroll automatically?

Middle-clicking on an area of a webpage, in most modern browsers, will turn your cursor into a multidirectional crosshair. When you move the mouse in a direction away from the starting point of that crosshair, the page will begin to automatically scroll.

How do I enable smooth scrolling in VS Code?

Open a new tab and type chrome://flags/#smooth-scrolling in the address bar, and press Enter. Click the dropdown box next to Smooth scrolling, and click Enabled. Click Relaunch on the bottom-right corner. Google Chrome will restart and open any pages that were previously open.

How do I keep my VS Code running?

To run or debug a simple app in VS Code, select Run and Debug on the Debug start view or press F5 and VS Code will try to run your currently active file.

How do I get auto scroll?

To use auto-scrolling, click the scroll wheel by pushing in on the wheel on a blank or empty portion of the screen. Once clicked, one of the three scrolling cursor icons (shown to the right) are shown, depending on the program you're using.


1 Answers

An option to turn off the smart scroll feature was included in one of the recent updates (probably in the March 2020 update, I didn't find it in the changelog), see more: issue #69480

Since then, I've been able to "save" the scroll state, try this:

  1. Go to File > Preferences > Settings (or Ctrl + ,)
  2. In Features > Output, disable Smart Scroll option (or search output.smartScroll.enabled)

Tested with VSCode version 1.45.1 and CodeRunner 0.10.0

Hope this works for you!

like image 187
jonatascsilva Avatar answered Sep 23 '22 11:09

jonatascsilva