Some useful shortcuts and tips for Visual Studio Code

2 – Shortcuts and tips

2.1 – Shortcuts

Ctrl + Shift + P : Show all commands or command palette (you can use it to do everything!)
Ctrl + Shift + F : Search all files
Ctrl + ù or Ctrl+` : Open terminal
Ctrl + D : Multi text selection/cursor. Rename all selected text matchs.
Shift + Alt + F : Format document
Mouse scroll wheel : Scroll tabs
Alt + right/left : Go back, go forward in history of actions.
Shift + Alt + F12 : Find all references (or right click)

2.2 – Tips

Use “cmd” : You can open VS Code from “cmd” and target the current folder by just typing code . (Tip : To navigate to your folder, you can either use cd command or use file explorer to find your folder and in the address bar type cmd and hint Enter)

Use terminal : VS Code have an integrated terminal, initially starting at the root of your workspace. You can add and switch between multiple terminals. For example “powershell”, “cmd” (that can runs different CLI like “.NET Core CLI” or “Angular CLI”).

Compare two files : With VS Code you can compare two files as if you are resolving a merge conflict. You simply need to drag and drop the two files into VS Code or open folder containing, select both files and select Select for Compare from the context menu [See more here]

Alter settings : You can easly override any settings in VS Code using JSON mode or GUI mode. You can use the gear icon
located at the bottom left of the screen to, for example, changing a shortcut of “Save all” action or ot hide/exclude files from explorer and search using extension of names [See more here]. E.g. use ** to replace any absolute path.
**/node_modules
**/bin
**/obj