I'm using VSCode as my text editor. I'm curious, is there a keybinding for centering the editor window on the cursor, when the window is a lot of lines below/above it such that it's not visible on the screen? I've tried looking at the default keybindings by going to FIle > Preferences > Keyboard Shortcuts, but I see no such options for centering the window.
Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.
You can do step-back to the previous line in VS code via the use of the new Step Backward icon while debugging your code with IntelliTrace Debugging. Now you can go to the previous line while debugging with the help of the step backward icon.
There is no such keybinding / command built-in.
I couldn't stand that either, so I created a VSCode extension. You can find it and install it here on the marketplace. The default shortcut is CTRL
+ L
.
If you are using vscodevim, zz
should work.
If you want to always keep the cursor on the center, you can change the setting Cursor Surrounding Lines
to a really high number (100 is ok) and that should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With