Here's the list of vs code keyboard shortcuts.It will work both for workspace and separate folders.
I have windows machine so I will be posting the list related to windows. Sorry mac users :(.
There are lots of vs code inbuilt shortcuts available. If needed you can create a custom shortcuts too.
Ctrl + b (Toggle sidebar) - It is used to toggle the sidebar and the editor workspace.
Ctrl + p (Go to file) - If you are working on a larger applications and if the folder structure is vast then definitely searching for a particular file in the application will be cumbersome. During at that time this shortcut will be very handy.
Ctrl + ` (Toggle Terminal) - It is used to toggle the vs code terminal.
Ctrl + shift + ` (New Terminal) - It is used to open new vs code terminal.
Ctrl + G (Go to line) - It is used to go to particular line number in the current file.
Ctrl + H (Replace) - Suppose your file is too long and if you are using global variable and there is in need of replacing the variable name in all the places of same file. This shortcut is used to find all the matched and replaces them.
Ctrl + F (Find) - It is used to find the search results. It may be a variable name or function name etc.
Ctrl + shift + F (Find) - It is used to search globally all over the projects for the search result.
*Ctrl + * (Split Editor) - It is used to split the editor in to two. This will be very useful while comparing the changes in your files.
Alt + uparrow/downarrow (Move code Up/Down) - It is used to move the selected code up/down from the current line.
Ctrl + n (New file) - It is used to open new untitled file.
Ctrl + shift + N (New window) - It is used to open entire new vs code window.
Ctrl + o (open file) - It is used to open file present in your local system.
Ctrl + K + O (New folder) - It is used to open the entire new folder and this will replace the current folder in vs code.
Ctrl + w (close file) - It is used to close the editor focused file.
Shift + alt + uparrow/downarrow (Copy code up/down) - It is used to copy the same selected code up/down from the current line.
Ctrl + shift + X (Show extensions) - It is used to open the extensions menu available in the sidebar.
Ctrl + shift + E (View explorer) - It is used to open the current project with current file focused on the sidebar.
Ctrl + , (settings) - It is used to open the settings.
Ctrl + shift + M (New file) - It is used to open the terminal with problems tab focused to check the errors and warnings in the current project.Just replace the 'M' to 'U' to focus the output tab.
Ctrl + shift + T (Re-open a Closed Editor) - It is used to open a recently closed file in your current project.
Ctrl + backspace (deletewordleft) - It is used to delete the entire word on the left while typing.
Ctrl + k, z (Toggle Zen mode) - It is used to open the zen mode i.e., without any distractions only the editor space will be focused.
Ctrl + / (Toggle line comment) - It is used to toggle the specific line comment.
Shift + alt + A (Toggle block comment) - It is used to toggle comments between the blocks.
Ctrl + shift + [ (Fold cell) - It is used to fold available code in between the blocks.
Ctrl + shift + ] (Unfold cell) - It is used to unfold available code in between the blocks.
Shift + alt + F (Format document) - It is used to format code in the current file.
Ctrl + k + f (Format selection) - It is used to format the selected code.
Ctrl + shift + c (Open windows terminal) - It is used to open the windows terminal instead of vs code terminal.
To create custom key bindings please check this link.
To see complete list of inbuilt keyboard shortcuts please go through this Link.
This is my first post. Apologize for my grammar mistakes if any and for my bad english. I will improve in my upcoming posts.
Thanks guys for reading this post. See you guys in the next post with list of vscode extensions.
Have a Great Day 😊!!!.