š„ 9 Keyboard Shortcuts that Improved My Productivity with VSCode
3 min readNov 25, 2022
1. Changing the Name of a Symbol
Method 1. Good but risky
CMD-SHIFT-L
But this changes the name across all of the file.- If you use the Vim extension, use it in
INSERT MODE
.
Method 2. Slightly Better
F2
If the name is local, this changes the name in the current scope, otherwise it changes it across all of the file.- Can be used in
INSERT
,NORMAL
, orVISUAL
modes.
2. Use the Command Palette to Peek into things
- Peek References, Declaration, and Definition.
- No need to memorize any shortcut key, but you can assign your own keybindings. Open Keyboard Shortcuts (type it in the command palette) and assign
CMD-SHIFT-F
to āGo to Definitionā. Although it says ādefinitionā, it actually shows you all the occurrences of the symbol :)
3. See the Errors
Either hover over them or F8
.
ESE
to hide.