Back to home

VS Code Shortcut Keys

Feb 11, 2026

Notion image

List of shortcuts are

  1. Alt + (1,2,3) = Change Tabs (First Tab is 1, Second is 2 and so on….)
  2. folderName/secondFolderName/app.js = Use this name while creating file which will create folder with name folderName having secondFolderName folder inside folderName and inside secondFolderName there will be file app.js.
  3. Ctrl + B = Open/Clos Sidebar
  4. Ctrl + \ = Spilt Screen in VS Code.
  5. Ctrl + (1,2,3) = Switch between Split Screen (Frist Screen is 1, Second is 2 and so on….)
  6. Ctrl + Arrow = Skip Word Blocks
  7. Ctrl + Shift + Arrow = Select via Skip Word Blocks
  8. Ctrl + X = Delete Current Whole Line
  9. Ctrl + C/V (Without Selecting) = This will Copy (C) and Paste (V), Current Whole Line, but there must no any selection.
  10. Ctrl + / = Comment Current Whole Line
  11. Ctrl + D = This will find selected Text and Select then on current file.
  12. Alt + (Up/Down Arrow) = Move Current Line Up or Down.
  13. Ctrl + Shift + O = Search by variable/function name, when click it scroll to them.
  14. Ctrl + Shift + X = Open Extension
  15. Ctrl + Shift + G = Open Github
  16. Ctrl + Shift + E = Open Explorer.
  17. Ctrl + ` = Open Terminal
  18. Ctrl + J = Hide Terminal
  19. Ctrl + Shift + ` = Create new terminal
  20. Ctrl + Shift + 5 = Split New Terminal by creating new one.
  21. Ctrl + P = Quick Open, Go to File
  22. Ctrl + Shift + P / F1 = Show Command Palette
  23. Ctrl + F = Find
  24. Ctrl + H = Replace
  25. Shift + Alt + (Up/Down Arrow) = Copy Current Line Up or Down
  26. Ctrl + Enter = Insert line below
  27. Ctrl + Shift + Enter = Insert line above
  28. Ctrl + L = Select current line
  29. Alt + (Left/Right Arrow) = Go back / forward in navigation history
  30. Ctrl + G = Go to Line
  31. F12 = Go to Definition
  32. Alt + F12 = Peek Definition
  33. Ctrl + Space = Trigger IntelliSense/suggestion
  34. Shift + Alt + F = Format document
  35. F2 = Rename Symbol
  36. Ctrl + Shift + K = Delete line
  37. Ctrl + ] / [ = Indent/outdent line
  38. Ctrl + Shift + = Jump to matching bracket
  39. Ctrl + N = New File
  40. Ctrl + S = Save
  41. Ctrl + Shift + S = Save As
  42. Ctrl + Shift + F = Show Search panel
  43. Ctrl + Shift + H = Replace in files
  44. F8 = Go to next error or warning
  45. Shift + F8 = Go to previous error or warning
  46. Alt + Z = Toggle word wrap
  47. Ctrl + Shift + [ = Fold (collapse) region
  48. Ctrl + Shift + ] = Unfold (un-collapse) region
  49. Ctrl + K Ctrl + C = Add line comment
  50. Ctrl + K Ctrl + U = Remove line comment