VSCode: Turn auto scrolling permanently ON - visual-studio-code

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?

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:
Go to File > Preferences > Settings (or Ctrl + ,)
In Features > Output, disable Smart Scroll option (or search output.smartScroll.enabled)
Tested with VSCode version 1.45.1 and CodeRunner 0.10.0

Smart scrolling allows you to lock scrolling automatically when you
click in the output view and unlocks when you click in the last line
So clicking on the last line will auto scroll to the last line. I made a habit of doing that. Of course disabling Smart Scrolling is the permanent solution.

Related

VSCode SCM tab suddenly disappeared

I must have pressed a wrong combination of keys with my crooked fingers which caused the version control tab to disappear from the sidebar.
Then I found source control tab somewhere in VSCode, dragged it into the sidebar, it shows the changes, however, the icon is completely different and also it doesn't show the number of current changes.
What happened?
In the below screenshot the yellow icon is what I have for SCM now.
Thanks 🤞
I had to use the View: Reset View Locations command to solve this problem in Visual Studio Code version 1.47 (macOS - Catalina).
To do this, just press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Linux/Windows), type workbench.action.resetViewLocations, then press Enter.
Release notes - May 2020 (version 1.46)
As #rioV8 commented - what solved it for me was to right click on the icon and click "Reset Location"
I am not sure what you actually dragged to the activity bar vscode is really modular in this way; hard to say without being there, but you can re-enable SCM button.
Even if you use the short cut to open the source control view (CTRL + SHIFT + G, it will disappear again after you focus out of it (when it's not enabled).
To re-enable it, right-click anywhere on the Activity Bar and select 'Source Control'
From version 1.46 it is now possible to drag and drop panels and views
If a panel/view is not in a spot you want and you want it back in its original place you can Right Click on the panel/view header and choose Reset Location.
Try right clicking on the bar and you should see a menu like the one below
recheck the source control and the icon should appear.
For people who applied the methods above but still could not see the source control panel where you could jump to editted files quickly but only the side bar, here is the way you can fix it:
After you have got the source control panel appeared, right click any available tabs you have inside the panel, such as commits, file history, branches etc. Then make sure you chose the Source Control.
If the "Source Control" panel is not on the side/activity bar or dissapeared for some reason, you check it on the "Explorer" panel. If you don't see it on the Explorer list, you can find it on the top right menu of the explorer panel. You can just check it and then it appears on the Explorer panel list.
Then you can just drag the Source Control panel and drop it on the side/activity bar. It gets back to its original place.
Finally!!!
As of vscode v1.75 you can reset all the view locations from the Layout Control button near the upper right:

How can I set the default option in Visual Studio Code's Quick Open View?

Up until now I've been using Ctrl+Q to trigger View: Quick Open View. The first option was Explorer, so if I Ctrl+Shift+F to search something I return the Explorer back to the sidebar by Ctrl+Q only.
Today, the first option changed and I have no idea why. It's set to an extension's sidebar view.
If I disable it the first option becomes Bookmarks. How can I tell VS Code I want Explorer to be the first option, like it's always been?
See https://github.com/microsoft/vscode/issues/90232
It was a regression in v1.42 that is due to be fixed in the v1.42.1 recovery update.

how do I get DBeaver to show a Save button?

I want a save button that I can click with the mouse, but when I focus on a SQL editor page and file and do >Window >Customise Perspective >Edit actions, it's greyed out and says "Save (Ctrl+S' command cannot be made visible in this dialog.
DBeaver Community v6.0.5.2019... Windows 10 Enterprise 2016
It's just a simple thing so I don't have to keep switching between keyboard and mouse.
This is some months old so it may not be relevant for you, but this may help others (I was brought here as the lone google search result and had to keep poking around until I found it)
anyway, in DBeaver menu select Window>Preferences>DBeaver>Editors there should be a checkbox for 'Show Edit toolbar'. Check that and apply and close. Exit and restart DBeaver and it should have buttons for save/undo/etc. If it still does not, go to Window>Customize Perspective and the 'Edit actions' toolbar items should no longer be unselectable so you should be able to add them to the toolbar from there.

Disable scroll in console in eclipse when I'm not at the bottom

I'm using the eclipse console for long, fast-running logs.
I can't find a way to get this console to behave like all other consoles, i.e. if it is scrolled down to the end, then it should scroll automatically, and if not, it should stop scrolling.
Is there a way (configuration, plugin) to achieve this?
As of Eclipse Mars (4.5), and with the fix for this bug, what you're after is now the default behaviour.
That is, you no longer have to manually toggle the Scroll Lock button - scrolling up (e.g. with the mouse wheel, but also by clicking the scrollbar or even moving the cursor up inside the console) automatically turns scroll locking on, while scrolling down to (near) the bottom turns it back off.
Great for some scenarios, but I sometimes find myself wishing for the old behaviour back. It doesn't seem as though there's an option, though.
No, there is no such thing before Eclipse Mars (4.5). You have to toggle the Scroll Lock toolbar button manually.
Windows > Preferences > Console > (un/check)
Enable auto scroll lock.
(I use Eclipse for Ent. Java Devs - version 2019-09 R (4.13.0))

Horizontal scrolling with the scrollwheel in Eclipse

I've been trying to find a way to scroll the text horizontally with my scrollwheel in Eclipse, similar to the way you can do it in Textpad. In Textpad if you hold ctrl while you scroll vertically it will scroll horizontally. Does anybody know if there is a configurable setting somewhere in Eclipse that will allow this? I've looked all over the "keys" setting page without being able to find it, and Google/Stack Overflow searches haven't turned anything up for me.
Thanks.
I guess this depends more on your OS than on Eclipse. For instance on Mac OS it's Shift + Scrolling.
#Daniel Sokolowski's answer was almost working. I have been using X-Mouse Button Control for over a year now and didn't know how to get the Horizontal Scrolling to work on certain programs (like Eclipse and Chrome) until I read Sokolowski's answer which pointed me in the right direction.
For the sake of brevity, and not to duplicate what has already been written clearly by Sokolowski, follow his directions, and in addition do the following:
Add Eclipse to your Applications list in X-Mouse by clicking Add and finding javaw.exe in the "Choose Application" popup and clicking OK.
Now click on the "Eclipse" profile and choose the "Scrolling & Navigation" tab
Under the "Advanced Window Scrolling" choose Method 1(SCROLL Msg) option for Scroll Method
Click Apply
If you correctly followed Sokolowski's and my instructions together you should be able to press Shift while scrolling up or down to trigger a horizontal scroll.
On a Windows machine this worked for me:
Download X-Mouse Button Control
In the main window go to 'Layer 2' and change 'Wheel Up' and 'Wheel Down' to 'Scroll Windows Right' and 'Scroll Window Left'
Go into the 'Settings > Modifier Keys Tab' and select 'Shift' for the 'Activate Layer 2' setting.
Now in whatever active window, including Eclipse pressing shift and then scrolling up and down will scroll horizontally.
Update: I have been using this approach for a few days now and noticed that not all windows are horizontal scroll enabled, for example 'Package Explorer' is not but 'Navigator' is - this appears to be a limitation of Eclipse IDE rather than this approach. Please take a moment and upvote this Eclipse Bug #201984
You have a plugin supposed (not tested) to support horizontal scrolling.
But without plugin, SWT does not support horizontal scrolling on Windows.
Its support is planed for 3.6 though. (since 3.6M2, actually -- September 18, 2009)
New event constants have been added for horizontal mouse wheels.
See SWT.MouseHorizontalWheel and SWT.MouseVerticalWheel.
For me the best way while using eclipse or for that matter any IDE, is to have a new line char at the end of screen. I feel that to use horizontal scrolling to view data becomes bit difficult while going back and forth and I would like all code to be visible to me always. If the code you are trying to view requires you to use horizontal scroll bar then try to format it by using Ctrl+Shift+F.
The bug has been fixed in the latest update of Eclipse.
In your Eclipse menu bar, simply:
1. Click Help>Check for Updates.. (and wait for the progress bar at the bottom to finish checking)
2. Install all updates.
Once Eclipse IDE gets restarted, you are now able to scroll horizontally.
(Save yourself from having to install additional mouse softwares to create new configurations. Phew, I'm so glad I figured this one out for myself)
Cheers!