VS Code Cheat Sheet: Layouts and Shortcuts
VS Code Cheat Sheet: Layouts and Shortcuts
Visual Studio code is the most popular editor for Web Development, and learning how to harness its power will
increase your efficiency and proficiency as a developer. In this cheat sheet, you’ll find quick links to
documentation, shortcuts, and more!
Learn everything you need to know about the most popular editor for Web Development
with the most popular VS Code course on Udemy!
Download VS Code
VS Code Layout
ctrlCmd + Shift + B - Toggle git
ctrlCmd + Shift + B - Toggle side bar
ctrlCmd + Shift + B - Toggle search
ctrlCmd + Shift + B - Toggle debug
ctrlCmd + K Z - Toggle Zen Mode
ctrlCmd + Shift + B - Toggle file editor
ctrlCmd + Shift + P - Command Palette
ctrlCmd + Shift + B - Toggle Extensions
ctrlCmd + V - paste
Cmd + Option + Shift + Up/Down | Ctrl + Shift + Alt + Up/Down - Multiple Cursors
Alt + Cmd + F | Ctrl + H Search and replace in current file (with and without selected text)
ctrlCmd + Shift + H – Search and replace in workspace (with and without selected text)
Emmet
Emmet provides shorthand snippets to generate HTML and CSS.
Emmet IO
Customization
ctrlCmd + K ctrlCmd + S – keybindings editor
Want a sweet looking FREE font with font ligatures for your code? Check out Fira Code
and/or Cascadia Code
Useful Extensions
Bookmarks
Quokka.js
Prettier Extension
Bracket Pair Colorizer
ESLint Extension
Live Server
Polacode
Debugger for Chrome
Better Comments
JavaScript ES6 Snippets
VS Code Icons
Import Cost
Settings Sync
Sweet Themes
Cobalt 2 One Dark Pro
Useful Extensions
Markdown Lint
Markdown Shortcuts
Markdown TOC
Markdown Worksheet
Formatting Code
Shift + Alt + F – format document
Prettier Extension
ESLint Extension
Debugging
Debugger for Chrome Extension
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "<http://localhost:8080>",
"webRoot": "${workspaceFolder}"
}
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/app.js"
}
Attach to Process (you will need to run your application first with node --inspect server.js )
{
"type": "node",
"request": "attach",
"name": "Attach by Process ID",
"processId": "${command:PickProcess}"
}
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229
}
Attach to Port using Nodemon (you will need to run your application first with nodemon --inspect server.js )
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229,
"restart": true
}
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost for Angular",
"url": "<http://localhost:4200>",
"webRoot": "${workspaceFolder}"
}
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost for React",
"url": "<http://localhost:3000>",
"webRoot": "${workspaceFolder}/src"
}