Prevent VSCode from scrolling up or down when selecting text - visual-studio-code

When I use VSCode and select text with a mouse (instead of the trackpad) the view is moving up and down slightly. It is annoying. Usually, it only scrolls when the selection is going off screen. Is there a way to turn this off?
It also moves when I place the cursor on new lines.
Editor settings:

Related

How to prevent VSCode's Select All (Ctrl+A) from moving the cursor to the bottom of the current file?

When I select all text in the editor (Ctrl+A), the code does not scroll down to the bottom, however the cursor does. When I press Escape and I want to continue writing code, I'd like the cursor to be at the same position it was before.
What happens right now is: when I press Escape, the code scrolls all the way down. I then have to find the previous cursor position.

Disable image tooltip when hovering property in css

Anyone know if we can disable the tooltip in this screen shot? It is so annoying. When I move my cursor up to edit another property this obtrusive popup shows because my mouse hovered over that path. I basically have to move my cursor around the URL in order to avoid it and cannot close it without my mouse leaving the area.

VSCode: How do I disable vscode from scrolling to where I click?

I can't find out how to disable this feature. VSCode will scroll to wherever I click in the text editor. It ends up scrolling the text as I press down to click and text gets highlighted until I release the click. This is very annoying. I have to click very very lightly in order to prevent this from happening. How do I disable this scroll-to-click feature.
I found the feature that allows the behavior to happen. It is called "Cursor Surrounding Lines".
Editor: Cursor Surrounding Lines
Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.
The value was set to 200, so I just set it to 0. Fixed the issue.

Access mouse over hover in VSCode

Is there a way to access the mouse over popup in VSCode via Keyboard and navigate in it?
I often use the mouse over to get the namespace of function or variable ...
So I want to place the cursor on "bar", popup the hover (Show Hover Ctrl+k Ctrl+i), focus it, mark some text (eg. namespace::functioname), copy and close the hover.
namespace foo{
void bar();
}
First problem, the hover doesn't get the focus and I don't know how to focus it. But there is another feature "Show defintion preview hover", which actually gets focused. So far so good. But I still cannot mark or copy text inside the hover via keyboard.
Show hover (not focused):
Show definition preview hover (focused):
But I still cannot mark or copy text inside the hover via keyboard.
That should change with VSCode 1.68 (May 2022):
Lock hovers to more easily mouse over them
Some custom hovers cannot be moused over and others are tricky to mouse over without hiding it because of other things in the way (eg. like a scroll bar).
Holding alt while a hover is active will now "lock" it, giving it a wider border and preventing moving the mouse outside of the hover widget or whatever triggered it from hiding it.
This is primarily an accessibility feature to make hovers play nice with screen magnifiers but it is also useful for copying text from certain hovers.
Note that this feature only applies outside of the editor because editor hovers can always be moused over unless specified otherwise via a setting.
This will be helpful for other views (debug, terminal, ...) where variables with their popup can appear as well.
In the editor, see microsoft/vscode issue 63296
ctrl+K ctrl+I to show the hover and focus it
ctrl+A to select all the hover content
ctrl+C to copy to clipboard
It does indeed work for me (on windows) for the first two steps, however ctrl+C does not copy the text selected with ctrl+A.
It seems like there are two different selections possible in the hover:
ctrl+Aselects everything with a dark blue.
When selecting some text in the hover with the mouse (i.e. press the left mouse button while near/over a char, move mouse, release left mouse button) the selected text is shown in a lighter and brighter blue.
The two selections can coexist.
ctrl+C always copies the text selected with the mouse, or nothing if there's no such selection, no matter whether a ctrl+A selection also has been done.
If there's only a ctrl+A selection, ctrl+C doesn't copy anything.
The two selections can be selected in any order. The order doesn't change the behavior.
Think I found out what you were after.
The shortcut is: Ctrl+K Ctrl+I
See: Trigger advanced hover information with keyboard
please try control + mouse click
it may be help you

How can I scroll left and right in Eclipse editor with the keyboard without moving the cursor?

To scroll within the Eclipse editor without moving the cursor up and down one can use CTRL+Down or CTRL+Up. But what about left and right?
It is not possible. If you search keys in Eclipse's Preferences, you will find out that you only have Scroll up and Scroll down that you can set hotkeys on.
My recommendation would be changing the maximum line length in the editor.
Make your code shorter. After all, looooong lines of code are not so readable.
Also, resize your editor area. If you feel strangled, remove the Outline, TaskList, and Build view from your right side of Eclipse, and enlarge the editor.