Saves all currently open files
ctrl
+k
s
Saves your current file, without running your formatter
ctrl
+k
ctrl
+shift
+s
Closes all currently open files
ctrl
+k
w
Opens your current file in a new VSCode window
ctrl
+k
o
Toggles comment on the selected line or lines
ctrl
+/
Selects the current line that your cursor is on
ctrl
+l
Folds all code blocks in current file
ctrl
+k
ctrl
+0
UnFolds all code blocks in current file
ctrl
+k
ctrl
+j
Opens UI to search for file in workspace
ctrl
+e
Indents the current line
ctrl
+]
Un-Indents the current line
ctrl
+[
Goes to the next error or warning in the current file
f8
Inserts a blank line above the current line, and moves your cursor to it
ctrl
+shift
+enter
Opens UI to search for symbol in current file, and moves your cursor to it
ctrl
+shift
+o
Will undo the last cursor movement
ctrl
+u
If the current file is markdown, opens a preview of it to the side
ctrl
+k
v
Copies the full path of the current file to your clipboard
ctrl
+k
p
Allows you to set the editor language for the current file
ctrl
+k
m
Removes all trailing whitespace from the current file
ctrl
+k
ctrl
+x
Whatever word you have selected, all occurrences will be selected allowing you to replace them
ctrl
+f2
Will hide or show the sidebar
ctrl
+b
If you have a word selected, this will find and select the next instances of it in the same file.
ctrl
+d
Opens breadcrumbs UI, allowing you to use arrow keys to navigate paths, and code blocks.
ctrl
+shift
+.
Opens a UI allowing you to search your available snippets.
ctrl
+alt
+r
Toggles VSCode in Zen Mode, which will hide most of the UI, and only show the editor.
ctrl
+k
z
Opens and selects the explorer, allowing you to navigate and open files. (works while in Zen Mode)
ctrl
+shift
+e
Opens and selects the source control, allowing you to manage your repo. (works while in Zen Mode)
ctrl
+shift
+g
Opens the find in files UI, allowing you to search for a string or regex in all files.
ctrl
+shift
+f
Opens the find in file UI, allowing you to search for a string or regex in the current file.
ctrl
+f
Toggles the terminal and debug console. If already open it will focus it. (works while in Zen Mode)
ctrl
+`
Selects the next console. Only works when console is focused
ctrl
+PAGE DOWN
Selects the previous console. Only works when console is focused
ctrl
+PAGE UP
Opens the open file selector, allowing you to tab to an already open file.
ctrl
+tab
Moves the current line up, if it is not the first line in the file.
alt
+up
Moves the current line down, if it is not the last line in the file.
alt
+down
Duplicates the current line up.
alt
+shift
+up
Duplicates the current line down.
alt
+shift
+down