Skip to content

Latest commit

 

History

History
125 lines (110 loc) · 6.94 KB

File metadata and controls

125 lines (110 loc) · 6.94 KB

Visual Studio Code most used shortcuts

Navigation

IDE navigation

  • Open anything from the toolbar Alt + highlighted key in the toolbar
  • Open code window Ctrl + Tab
  • File explorer Ctrl + Shift + E
  • Collapse folders in file explorer Ctrl + Shift + Alt + C
  • Git panel Ctrl + Shift + G, G
  • Toggle output Alt + Shift + Q, U
  • Toggle terminal Ctrl + `
  • Toggle problems Ctrl + M
  • Toggle debug console Ctrl + Y
  • Focus outline Alt + Shift + Q, O
  • Focus Spring Boot Dashboard Alt + Shift + Q, A
  • Focus Java explorer Alt + Shift + Q, J
  • Focus Test view Alt + Shift + Q, T
  • Focus Database view Alt + Shift + Q, D
  • Focus Docker container view Alt + Shift + Q, F
  • Focus GitLab view Alt + Shift + Q, G
  • Hide sidebar Ctrl + Shift + Alt + H
  • Maximize editor group Ctrl + Shift + Alt + M
  • Move editor group Ctrl + K, Left / Right / Up / Down
  • Close current tab Ctrl + W
  • Switch tabs Ctrl + Tab
  • Split editor Ctrl + \
  • Move editor to new split editor Ctrl + Alt + Left/Right
  • IDE search Ctrl + Shift + P
  • Settings search Ctrl + ,
  • Zoom out Ctrl + -
  • Zoom in Ctrl + =
  • Increase current view size Ctrl + Alt + Shift + =
  • Decrease current view size Ctrl + Alt + Shift + -
  • Open terminal in a folder Ctrl + Shift + `
  • Navigate through terminals Ctrl + Page up/Page down
  • Split terminal Ctrl + Shift + 5
  • Kill active terminal Ctrl + Shift + Delete
  • Clear all notifications Alt + Shift + M, C
  • Focus notification toast Alt + Shift + M, T
  • Show notifications Alt + Shift + M, M

Code navigation

  • Go to definition F12
  • Peek definition Alt + F12
  • Go to implementation Ctrl + F12
  • Go to super implementation Ctrl + Shift + Alt + F12
  • Find references Shift + F12
  • Peek definition Alt + F12
  • Peek implementations Ctrl + Shift + F12
  • Call hierarchy Alt + Shift + H
  • Search file Ctrl + F
  • Search project Ctrl + Shift + F
  • Navigate backward Alt + Left
  • Navigate forward Alt + Right
  • New item Alt + Shift + N
  • Next tab Ctrl + PgDown
  • Previous tab Ctrl + PgUp
  • Open breadcrumb Ctrl + Shift + Alt + /

Runtime

Debugging

  • Build application Ctrl + Alt + Shift + F5
  • Debug application / resume F5
  • Debug multiple Spring Boot applications Ctrl + Shift + Alt + F8
  • Stop application Shift + F5
  • Stop multiple Ctrl + Shift + Alt + F7
  • Step into F11
  • Step over F10
  • Step out Shift + F11
  • Toggle breakpoint Ctrl + Shift + B
  • Breakpoint condition Ctrl + Alt + Shift + B
  • Focus call stack Alt + Shift + Q, C
  • Focus variables Alt + Shift + Q, V
  • Focus breakpoints Alt + Shift + Q, B
  • Focus watch Alt + Shift + Q, W

Testing

  • Show test output Ctrl + ;, Ctrl + O
  • Run all file tests Ctrl + ;, F
  • Run cursor test Ctrl + ;, C
  • Run all tests Ctrl + ;, A
  • Debug all file tests Ctrl + ;, Ctrl + F
  • Debug cursor test Ctrl + ;, Ctrl + C
  • Debug all test Ctrl + ;, Ctrl + A
  • Clear test results Ctrl + ;, Delete

Editing

Code folding

  • Expand current region Ctrl + Shift + =
  • Collapse current region Ctrl + Shift + -
  • Collapse to definition Ctrl + [
  • Collapse recursively Ctrl + K, Ctrl + [
  • Expand all outlining Ctrl + ]

IDE features

  • Toggle comment Ctrl + /
  • Toggle block comment Ctrl + Shift + /
  • Complete word Ctrl + Space
  • Quick suggestion Ctrl + .
  • Rename code Alt + Shift + R
  • Rename file F2
  • Advanced new file Alt + Shift + N, N
  • Format document Alt + Shift + F
  • ESLint fix all auto-fixable problems Alt + Shift + \
  • Refactor code Shift + Alt + F
  • Source action Shift + Alt + A
  • Delete line Shift + Del
  • Move line down Alt + Down
  • Move line up Alt + Up
  • Increase line indent Ctrl + Shift + .
  • Decrease line indent Ctrl + Shift + ,
  • Toggle Vrapper Ctrl + Alt + Shift + V
  • Search symbol in workspace Ctrl + Shift + R
  • Search symbol in editor Ctrl + Shift + O
  • Show hover information g, h
  • Toggle camel case navigation Ctrl + Alt + Shift + '