microsoft /vscode-tips-and-tricks
Collection of helpful tips and tricks for VS Code.
★ 9,020⑂ 683👁 2⑃ 115● 30▤ 0
More from this author
+0
Daily
9,020
stars
683
forks
2
watchers
115
prs
30
issues
0
releases
README
VS Code Tips and Tricks Note: Tips and Tricks has moved to the official Visual Studio Code documentation at code.visualstudio.com. The content is now at vscode-docs. Pull requests and documentation issues are still greatly appreciated. Table of Contents 1. Basics 2. Customization 3. Extensions 4. File and folder management 5. Editing hacks 6. IntelliSense 7. Snippets 8. Git integration 9. Debugging 10. Task runner 11. Other Resources The key bindings below may or may not be accurate with the latest build. See here for the latest keyboard shortcut reference. Basics Insider Version of VS Code The Visual Studio Code team uses the Insiders version to test the latest features and bug fixes of VS Code. You can use this same version by downloading here. For Early Adopters - Insiders has the most recent code changes and may lead to the occasional broken build. Frequent Builds - New builds everyday with the latest bug fixes and features. Side-by-side install - Insiders installs next to the Stable build allowing you to use either independently. !side by side install Getting Started Open the Welcome page to get started with the basics of VS Code. Help Welcome. !welcome page Includes the Interactive Playground. !interactive playground Command Palette Access all available commands based on your current context. Mac: cmd+shift+p or f1 Windows / Linux: ctrl+shift+p or f1 !command palette Reference keybindings All of the commands are in the Command Palette with the associated key binding (if it exists). If you forget what the key binding is use the Command Palette to help you out. !keyboard references Quick open Quickly open files. Mac: cmd+p Windows / Linux: ctrl+p !Quick Open Tip: Type "?" to view help suggestions. Navigate between recently opened files Repeat the Quick Open keyboard shortcut to cycle quickly between recently opened files. Open multiple files from Quick Open You can open multiple files from Quick Open by pressing the Right arrow key. This will open the currently selected file in the background and you can continue selecting files from Quick Open. CLI tool Linux: Follow instructions here. Windows: Follow instructions here. Mac: see below. Open the Command Palette (F1) and type "shell command". Hit enter to execute Shell Command: Install 'code' command in PATH. !shell command bash open code with current directory code . open the current directory in the most recently used code window code -r . create a new window code -n change the language code --locale=es open diff editor code --diff see help options code --help disable all extensions code --disable-extensions . !all cli commands .vscode folder Workspace specific files are in .vscode. For example, tasks.json for the Task Runner and launch.json for the debugger. Status Bar decorations Errors and Warnings Mac: shift+cmd+m Windows / Linux: ctrl+shift+m Quickly jump to errors and warnings in the project. Cy