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!
Download VS Code
VS Code Layout
ctrlCmd + Shift + G - Toggle git
ctrlCmd + Shift + B - Toggle side
bar ctrlCmd + Shift + F - Toggle
search
ctrlCmd + Shift + D - Toggle
debug ctrlCmd + K Z - Toggle Zen Mode
ctrlCmd + V - paste
Alt + Cmd + F | Ctrl + H Search and replace in current file (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
Settings Sync
Sweet Themes
Cobalt 2 One Dark Pro
Useful Extensions
Markdown Lint
Markdown Shortcuts
Markdown TOC
Formatting Code
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}"
}
server.js )
{
"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"
}