This VS Code extension provides keyboard shortcuts to replace the arrow keys, Home, End, Page Down, and Page Up, helping to reduce finger movement.
Features
This extension offers the following shortcuts:
Ctrl + U: Deletes the entire line where the cursor is located.
Ctrl + Shift + B: Extends the selection left by one character.
Ctrl + Shift + F: Extends the selection right by one character.
Ctrl + Shift + P: Extends the selection up by one line.
Ctrl + Shift + N: Extends the selection down by one line.
Ctrl + Alt + P: Moves the current line up.
Ctrl + Alt + N: Moves the current line down.
Alt + B: Moves the cursor left by one word.
Alt + F: Moves the cursor right by one word.
Alt + H: Deletes the word to the left of the cursor.
Alt + D: Deletes the word to the right of the cursor.
Alt + P: Moves the cursor up by one page.
Alt + N: Moves the cursor down by one page.
Alt + A: Moves the cursor to the start of the document.
Alt + E: Moves the cursor to the end of the document.
Alt + C: Capitalizes the current word.
Alt + L: Converts the current word to lowercase.
Alt + U: Converts the current word to uppercase.
Alt + Shift + B: Extends the selection left by one word.
Alt + Shift + F: Extends the selection right by one word.
Note: On macOS, pressing the Option key with a letter can produce special characters, which might interfere with some shortcuts. If you encounter this issue, you can disable this default OS behavior by changing the Input Source:
Open System Settings/Preferences.
Go to Keyboard.
Edit Input Source.
Click the "+" button at the bottom left.
Select and add Unicode Hex Input.
Reference for Shortcuts, Including Built-in Shortcuts
VS Code includes several similar shortcuts, and combining them with the shortcuts from this extension can boost your efficiency. This document lists these shortcuts for reference.
Some of these shortcuts can also be used in Linux and macOS Terminal; this will be noted below.