šŸ”„ 9 Keyboard Shortcuts that Improved My Productivity with VSCode

a place of mind
3 min readNov 25, 2022
Photo

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 , or VISUAL 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 :)
Gif by a place of mind

3. See the Errors

Either hover over them or F8.

  • ESE to hide.

--

--