This repository is intended for sharing the keybindings.json
file, which is the keybinding settings file for Visual Studio Code (VSCode). By using this configuration file, you can streamline cursor movement and edit your code efficiently without having to move your hands away from the home position.
Follow these steps to apply the keybinding configuration correctly to your VSCode:
-
Open VSCode.
-
Press
Ctrl + Shift + P
to open the command palette. -
Type "Preferences: Open Keyboard Shortcuts (JSON)" and select it from the list. This will open the
keybindings.json
file. -
Copy the contents of the
keybindings.json
file from this repository and paste them into the openedkeybindings.json
file in VSCode. -
Save the changes by pressing
Ctrl + S
.
By following these steps, you will correctly configure the cursor keybindings in VSCode.
This keybinding configuration provides shortcut keys for cursor movement from the home position (J, K, L, I, H, ;, U, O keys). Below are the main shortcut keys and their descriptions:
Alt + J
: Move the cursor to the left.Alt + K
: Move the cursor down.Alt + L
: Move the cursor to the right.Alt + I
: Move the cursor up.Alt + H
: Move the cursor to the beginning of the line.Alt + ;
: Move the cursor to the end of the line.Alt + U
: Scroll the page up while moving the cursor.Alt + O
: Scroll the page down while moving the cursor.
You can also select text by holding down the Shift key in conjunction with the above shortcuts:
Shift + Alt + J
: Move the cursor to the left while selecting.Shift + Alt + K
: Move the cursor down while selecting.Shift + Alt + L
: Move the cursor to the right while selecting.Shift + Alt + I
: Move the cursor up while selecting.Shift + Alt + H
: Move the cursor to the beginning of the line while selecting.Shift + Alt + ;
: Move the cursor to the end of the line while selecting.Shift + Alt + U
: Scroll the page up while selecting.Shift + Alt + O
: Scroll the page down while selecting.
By using these shortcuts, you can efficiently edit your code without having to move your hands away from the keyboard's home position.