When scrolling with keyboard with ctrl + up/down in windows and the cursor still in the first place, so when I leave ctrl button and move cursor with keyboard up/down/left/right keys in order to place the cursor in currently scrolled place, the scroll goes to the first place where the cursor was! is there any way when scrolling with keyboard move cursor along with?
Related
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:
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.
I'm implementing a ctrl+click solution for links in a textview and am having trouble setting the cursor to a hand when Ctrl is being held. Right now I
set the cursor to a hand in mouse motion when mouse moves inside the textview and control is pressed and the mouse is on top of a link (I use TextTag to style the links, so I just check whether the text below the mouse has this tag.).
set the mouse cursor back to the text edit cursor otherwise
However, when the mouse is on top of the link and I press Ctrl (without moving the mouse) the cursor does not change. Clearly, no mouse motion was detected so this is the expected behavior. My problem is how to implement this. I tried adding a keypress handler to the textview, but
it only fires when the textview has focus. This is not always the case, since I might not click the textview before clicking the link.
event.get_state() only comes with CONTROL_MASK if other key is pressed as well.
I receive no information about the mouse cursor, so I end up not knowing where it is pointing inside the keypress handler.
How can I solve these issues so I can have a Ctrl+click solution that shows adequate cursor when Ctrl is being pressed? I can already solve it by considering only mouse motion. The problem is how to detect Ctrl being pressed and react accordingly without mouse motion.
This SO post documents a keyboard shortcut to activate the hover text documentation pop-up in VS Code. However, sometimes the documentation is long enough that you need to be able to scroll through it. Is there a key combination to scroll through the hover text pop-up without using the mouse? (Of course if you activate the hover text using your mouse, then you can scroll through using the scroll wheel on your mouse.)
Lets assume that I have something like the following
* Project Outline
** Foobat
And the cursor is on the t of foobat I want to delete the t by pressing backspace. When I press backspace, the cursor will jump to the first astrix at the top of the page. This is the astrix right before Project Outline. Why is this happening?