2018-02-01 09:43:19 +00:00
|
|
|
---
|
|
|
|
title: Visual Studio Code
|
|
|
|
category: Apps
|
2020-07-05 11:11:36 +00:00
|
|
|
updated: 2018-02-01
|
2018-02-01 09:43:19 +00:00
|
|
|
weight: -5
|
|
|
|
keywords:
|
|
|
|
- "⌘P: Show files"
|
|
|
|
- "⌘B: Toggle sidebar"
|
|
|
|
- "⌘J: Toggle panel"
|
|
|
|
- "F5: Debug"
|
|
|
|
intro: |
|
|
|
|
[Visual Studio Code](https://code.visualstudio.com/), or VSCode, is an open-source code editor. This guide targets VSCode v1.19.
|
|
|
|
---
|
|
|
|
|
2018-02-01 14:52:04 +00:00
|
|
|
## Shortcuts
|
2018-02-01 09:43:19 +00:00
|
|
|
{: .-three-column}
|
|
|
|
|
|
|
|
### Command palette
|
|
|
|
|
2018-02-01 14:52:04 +00:00
|
|
|
| Key | Description |
|
|
|
|
| ----- | ----------------- |
|
2018-02-01 09:43:19 +00:00
|
|
|
| `⇧⌘P` | Show all commands |
|
2018-02-01 14:52:04 +00:00
|
|
|
| `⌘P` | Show files |
|
2018-02-01 09:43:19 +00:00
|
|
|
{: .-shortcuts}
|
|
|
|
|
|
|
|
### Sidebars
|
|
|
|
|
2018-02-01 14:52:04 +00:00
|
|
|
| Key | Description |
|
|
|
|
| ----- | -------------- |
|
|
|
|
| `⌘B` | Toggle sidebar |
|
|
|
|
| ---- | ---- |
|
|
|
|
| `⇧⌘E` | Explorer |
|
|
|
|
| `⇧⌘F` | Search |
|
|
|
|
| `⇧⌘D` | Debug |
|
|
|
|
| `⇧⌘X` | Extensions |
|
|
|
|
| `⇧^G` | Git (SCM) |
|
2018-02-01 09:43:19 +00:00
|
|
|
{: .-shortcuts}
|
|
|
|
|
|
|
|
### Search
|
|
|
|
|
2018-02-01 14:52:04 +00:00
|
|
|
| Key | Description |
|
|
|
|
| ----- | ---------------- |
|
|
|
|
| `⌘F` | Find |
|
|
|
|
| `⌥⌘F` | Replace |
|
|
|
|
| ---- | ---- |
|
|
|
|
| `⇧⌘F` | Find in files |
|
2018-02-01 09:43:19 +00:00
|
|
|
| `⇧⌘H` | Replace in files |
|
|
|
|
{: .-shortcuts}
|
|
|
|
|
|
|
|
### Panel
|
|
|
|
|
2018-02-01 14:52:04 +00:00
|
|
|
| Key | Description |
|
|
|
|
| -------------------------- | ------------- |
|
|
|
|
| `⌘J` | Toggle panel |
|
|
|
|
| ---- | ---- |
|
|
|
|
| `⇧⌘M` | Problems |
|
|
|
|
| `⇧⌘U` | Output |
|
|
|
|
| `⇧⌘Y` | Debug console |
|
2018-02-12 11:44:25 +00:00
|
|
|
| <code>^`</code> | Terminal |
|
2018-02-01 09:43:19 +00:00
|
|
|
{: .-shortcuts}
|
|
|
|
|
|
|
|
### View
|
|
|
|
|
2018-02-01 14:52:04 +00:00
|
|
|
| Key | Description |
|
|
|
|
| -------- | ---------------- |
|
|
|
|
| `⌘k` `z` | Zen mode |
|
|
|
|
| ---- | ---- |
|
2018-02-01 09:43:19 +00:00
|
|
|
| `⌘k` `u` | Close unmodified |
|
2018-02-01 14:52:04 +00:00
|
|
|
| `⌘k` `w` | Close all |
|
2018-02-01 09:43:19 +00:00
|
|
|
{: .-shortcuts}
|
|
|
|
|
|
|
|
### Debug
|
|
|
|
|
2018-02-01 14:52:04 +00:00
|
|
|
| Key | Description |
|
|
|
|
| ------ | ----------------------- |
|
|
|
|
| `F5` | Start |
|
|
|
|
| `⇧F5` | Stop |
|
|
|
|
| `⇧⌘F5` | Restart |
|
|
|
|
| ---- | ---- |
|
|
|
|
| `^F5` | Start without debugging |
|
|
|
|
| ---- | ---- |
|
|
|
|
| `F9` | Toggle breakpoint |
|
|
|
|
| ---- | ---- |
|
|
|
|
| `F10` | Step over |
|
|
|
|
| `F11` | Step into |
|
|
|
|
| `⇧F11` | Step out |
|
|
|
|
| ---- | ---- |
|
|
|
|
| `⇧⌘D` | Debug sidebar |
|
|
|
|
| `⇧⌘Y` | Debug panel |
|
2018-02-01 09:43:19 +00:00
|
|
|
{: .-shortcuts}
|
|
|
|
|
|
|
|
## References
|
|
|
|
|
2018-02-01 14:52:04 +00:00
|
|
|
* [Keyboard shortcuts (MacOS)](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf) _(code.visualstudio.com)_
|
|
|
|
* [Keyboard shortcuts (Windows)](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf) _(code.visualstudio.com)_
|
|
|
|
* [Keyboard shortcuts (Linux)](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf) _(code.visualstudio.com)_
|