Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to scroll without moving my cursor in Visual Studio Code from the Keyboard

I used to be able to scroll in Visual Studio 2015 using some keyboard shortcuts in Windows doing something like ctrlshiftdown. It would effectively behave like a line by line viewport bump that did not modify where my cursor was inserted at. This is much like how scrolling with a mouse wheel does not move the cursor except its achieved from the keyboard.

I can't figure out how to do this on Visual Studio Code on a Mac.

like image 659
jxramos Avatar asked Mar 07 '18 00:03

jxramos


People also ask

How do I navigate code without mouse?

Ctrl + Shift + E to focus on the explorer and Ctrl + Shift + E again to focus back to the editor. Use the up/down arrow to navigate between the file or folder. Use the left arrow to go up one directory, and right arrow to go inside a directory. Press Enter to open a file.

How do I enable Ctrl scroll zoom in VS Code?

Steps to enable Mouse Scroll Zoom in Visual Studio CodeOn Search Settings , type mouse wheel zoom . Check the checkbox under Editor: Mouse Wheel Zoom . This will automatically save the settings. When you go back to your code, you will now be able to use Ctrl + Mouse Wheel to zoom the font in your editor.

How do I enable horizontal scrolling in Visual Studio?

Enables horizontal scrolling by holding down the Shift key and spinning the mouse wheel in Visual Studio 2017, 2019 and 2022. This feature is available in many other programs.


1 Answers

On my Mac Ctrl+Page Up/Down works similar to mouse scroll. This doesn't affect the cursor position.

like image 92
Devin Avatar answered Oct 10 '22 14:10

Devin