VS Code Shortcut Keys
Feb 11, 2026

List of shortcuts are
- Alt + (1,2,3) = Change Tabs (First Tab is 1, Second is 2 and so on….)
- 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.
- Ctrl + B = Open/Clos Sidebar
- Ctrl + \ = Spilt Screen in VS Code.
- Ctrl + (1,2,3) = Switch between Split Screen (Frist Screen is 1, Second is 2 and so on….)
- Ctrl + Arrow = Skip Word Blocks
- Ctrl + Shift + Arrow = Select via Skip Word Blocks
- Ctrl + X = Delete Current Whole Line
- Ctrl + C/V (Without Selecting) = This will Copy (C) and Paste (V), Current Whole Line, but there must no any selection.
- Ctrl + / = Comment Current Whole Line
- Ctrl + D = This will find selected Text and Select then on current file.
- Alt + (Up/Down Arrow) = Move Current Line Up or Down.
- Ctrl + Shift + O = Search by variable/function name, when click it scroll to them.
- Ctrl + Shift + X = Open Extension
- Ctrl + Shift + G = Open Github
- Ctrl + Shift + E = Open Explorer.
- Ctrl + ` = Open Terminal
- Ctrl + J = Hide Terminal
- Ctrl + Shift + ` = Create new terminal
- Ctrl + Shift + 5 = Split New Terminal by creating new one.
- Ctrl + P = Quick Open, Go to File
- Ctrl + Shift + P / F1 = Show Command Palette
- Ctrl + F = Find
- Ctrl + H = Replace
- Shift + Alt + (Up/Down Arrow) = Copy Current Line Up or Down
- Ctrl + Enter = Insert line below
- Ctrl + Shift + Enter = Insert line above
- Ctrl + L = Select current line
- Alt + (Left/Right Arrow) = Go back / forward in navigation history
- Ctrl + G = Go to Line
- F12 = Go to Definition
- Alt + F12 = Peek Definition
- Ctrl + Space = Trigger IntelliSense/suggestion
- Shift + Alt + F = Format document
- F2 = Rename Symbol
- Ctrl + Shift + K = Delete line
- Ctrl + ] / [ = Indent/outdent line
- Ctrl + Shift + = Jump to matching bracket
- Ctrl + N = New File
- Ctrl + S = Save
- Ctrl + Shift + S = Save As
- Ctrl + Shift + F = Show Search panel
- Ctrl + Shift + H = Replace in files
- F8 = Go to next error or warning
- Shift + F8 = Go to previous error or warning
- Alt + Z = Toggle word wrap
- Ctrl + Shift + [ = Fold (collapse) region
- Ctrl + Shift + ] = Unfold (un-collapse) region
- Ctrl + K Ctrl + C = Add line comment
- Ctrl + K Ctrl + U = Remove line comment