Visual Studio Code
Extensible code editor from Microsoft
Visual Studio Code Cheatsheet
Essential Extensions
| Extension | Description |
|---|---|
| Prettier | Code formatter |
| ESLint | JavaScript linting |
| GitLens | Enhanced Git integration |
| GitHub Copilot | AI code completion |
| Live Server | Local dev server |
| Thunder Client | REST API testing |
| Remote - SSH | Remote development |
| Docker | Container management |
Settings Sync
| Method | Description |
|---|---|
| Built-in | Sign in with GitHub/Microsoft |
| Settings file | settings.json manual sync |
| Profiles | Multiple configuration profiles |
Configuration Files
| File | Location |
|---|---|
settings.json |
User preferences |
keybindings.json |
Custom shortcuts |
tasks.json |
Build tasks |
launch.json |
Debug configurations |
.vscode/ |
Workspace settings |
extensions.json |
Recommended extensions |
Multi-cursor Editing
| Shortcut | Action |
|---|---|
| ⌥+click | Add cursor |
| ⌘⌥↑ | Add cursor above |
| ⌘⌥↓ | Add cursor below |
| ⌘⇧L | Cursor at all occurrences |
| ⌘D | Add next occurrence |
Visual Studio Code Shortcuts
General
| Shortcut | Action |
|---|---|
| ⌘⇧P | Command palette |
| ⌘P | Quick open file |
| ⌘, | Settings |
| ⌘⇧N | New window |
| ⌘W | Close editor |
| ⌘⇧W | Close window |
| ⌘` | Toggle terminal |
| ⌘B | Toggle sidebar |
| ⌘J | Toggle panel |
Code Editing
| Shortcut | Action |
|---|---|
| ⌘D | Select next occurrence |
| ⌘⇧L | Select all occurrences |
| ⌘L | Select line |
| ⌥↑ | Move line up |
| ⌥↓ | Move line down |
| ⌥⇧↑ | Copy line up |
| ⌥⇧↓ | Copy line down |
| ⌘⇧K | Delete line |
| ⌘/ | Toggle line comment |
| ⌘⇧A | Toggle block comment |
| ⌘⇧[ | Fold region |
| ⌘⇧] | Unfold region |
| ⌘⌥F | Find and replace |
| ⌘⇧H | Replace across files |
Integrated Terminal
| Shortcut | Action |
|---|---|
| ⌘` | Toggle terminal |
| ⌃⇧` | New terminal |
| ⌘\ | Split terminal |
| ⌘↑ | Scroll up |
| ⌘↓ | Scroll down |