Splitting and Focusing: Jumping Within Files
Splitting and Focusing: Jumping Within Files
in VS code
Split editor Focus explorer panel
ctrl + \ ( ⌘ + \) ctrl + 0 ( ⌘ + 0)
Switch between views Focus code view
ctrl + 1 ( ⌘ + 1), ctrl + 1 (⌘ + 1),
ctrl + 2 ( ⌘ + 2)... ctrl + 2 (⌘ + 2)...
Navigating files
Open search bar
ctrl + p ( ⌘ + p)
Switch directly to previous/next file
alt + left / right (ctrl + shift + - / ctrl + - )
Selecting code
Select pieces of code based on scope (repeated use makes selection bigger/smaller)
alt + shift + left / right ( ⌘ + ctrl + shift + left / right)
Definitions and references Keyboard shortcuts
Jump to definition of highlighted function in VS code
F12
Peek at implementation of highlighted function Change name of given symbol
alt + F12 (option + F12) F2
esc when done Closer look at errors
Peek at references of symbol F8
shift + F12 ( ⌘ + k and F12) esc when done
Intellisense
Hover
1. Set shortcut
ctrl + k ( ⌘ + k) and then ctrl + s (⌘ + s)
2. Search for Show hover action and set it to preferred shortcut