Keyboard shortcuts
A “keyboard shortcut” or “keybinding” is combination of keys on your keyboard which allows you to perform common actions such as saving a file, modifying the view, or copying a line of code. In the StackBlitz editor this set of shortcuts is predefined and, currently, non-customizable.
Choose your platform to see the full list of available shortcuts: Windows | MacOS | Linux.
Windows keybindings
Keybinding (Windows) | Command |
---|---|
Ctrl S | Save Project |
Ctrl P | Go To File … |
Shift Alt F | Format Document |
Ctrl B | Toggle Sidebar |
Ctrl ` | Toggle Terminal |
Ctrl J | Toggle Preview |
Ctrl Shift E | Show File Explorer |
Ctrl Shift F | Show Find In Files |
Ctrl , | Show Settings |
F1 | Show All Commands |
Ctrl K + Ctrl 0 | Fold All |
Ctrl K + Ctrl J | Unfold All |
Ctrl K + Ctrl / | Fold All Block Comments |
Ctrl K + Ctrl 1 | Fold Level 1 |
Ctrl K + Ctrl 2 | Fold Level 2 |
Ctrl K + Ctrl 3 | Fold Level 3 |
Ctrl K + Ctrl 4 | Fold Level 4 |
Ctrl K + Ctrl 5 | Fold Level 5 |
Ctrl K + Ctrl 6 | Fold Level 6 |
Ctrl K + Ctrl 7 | Fold Level 7 |
Ctrl K + Ctrl [ | Fold Recursively |
Ctrl K + Ctrl ] | Unfold Recursively |
Ctrl 1 | Focus Editor Tab 1 |
Ctrl 2 | Focus Editor Tab 2 |
Ctrl 3 | Focus Editor Tab 3 |
Ctrl 4 | Focus Editor Tab 4 |
Ctrl 5 | Focus Editor Tab 5 |
Ctrl 6 | Focus Editor Tab 6 |
Ctrl 7 | Focus Editor Tab 7 |
Ctrl X | Cut line (empty selection) |
Ctrl C | Copy line (empty selection) |
Alt ↓ / Alt ↑ | Move line down/up |
Shift Alt ↓ / Shift Alt ↑ | Copy line down/up |
Shift Ctrl K | Delete line |
Ctrl Enter / Shift Ctrl Enter | Insert line below/above |
Shift Ctrl \ | Jump to matching bracket |
Ctrl ↑ / Ctrl ↓ | Go to beginning/end of file |
Ctrl K + Ctrl C | Add line comment |
Ctrl K + Ctrl U | Remove line comment |
Ctrl / | Toggle line comment |
Shift Alt A | Toggle block comment |
Alt + click | Insert cursor |
Alt Ctrl ↑ | Insert cursor above |
Alt Ctrl ↓ | Insert cursor below |
Ctrl U | Undo last cursor operation |
Shift Alt I | Insert cursor at end of each line selected |
Ctrl L | Select current line |
Shift Ctrl L | Select all occurrences of current selection |
Ctrl F2 | Select all occurrences of current word |
Shift Ctrl → / ← | Expand / shrink selection |
Shift Alt + drag mouse | Column (box) selection |
Shift Alt Ctrl ↑ / ↓ | Column (box) selection up/down |
Shift Alt Ctrl ← / → | Column (box) selection left/right |
Ctrl K F12 | Open Definition to the side |
Shift F12 | Show References |
F2 | Rename Symbol |
Ctrl K + Ctrl X | Trim trailing whitespace |
MacOS keybindings
Keybinding (MacOS) | Command |
---|---|
⌘ S | Save Project |
⌘ P | Go To File … |
⇧ ⌥ F | Format Document |
⌘ B | Toggle Sidebar |
⌃ ` | Toggle Terminal |
⌘ J | Toggle Preview |
⌘ ⇧ E | Show File Explorer |
⌘ ⇧ F | Show Find In Files |
⌘ , | Show Settings |
(fn ) F1 | Show All Commands |
⌘ K + ⌘ 0 | Fold All |
⌘ K + ⌘ J | Unfold All |
⌘ K + ⌘ / | Fold All Block Comments |
⌘ K + ⌘ 1 | Fold Level 1 |
⌘ K + ⌘ 2 | Fold Level 2 |
⌘ K + ⌘ 3 | Fold Level 3 |
⌘ K + ⌘ 4 | Fold Level 4 |
⌘ K + ⌘ 5 | Fold Level 5 |
⌘ K + ⌘ 6 | Fold Level 6 |
⌘ K + ⌘ 7 | Fold Level 7 |
⌘ K + ⌘ [ | Fold Recursively |
⌘ K + ⌘ ] | Unfold Recursively |
⌘ 1 | Focus Editor Tab 1 |
⌘ 2 | Focus Editor Tab 2 |
⌘ 3 | Focus Editor Tab 3 |
⌘ 4 | Focus Editor Tab 4 |
⌘ 5 | Focus Editor Tab 5 |
⌘ 6 | Focus Editor Tab 6 |
⌘ 7 | Focus Editor Tab 7 |
⌘ X | Cut line (empty selection) |
⌘ C | Copy line (empty selection) |
⌥ ↓ / ⌥ ↑ | Move line down/up |
⇧ ⌥ ↓ / ⇧ ⌥ ↑ | Copy line down/up |
⇧ ⌘ K | Delete line |
⌘ Enter / ⇧ ⌘ Enter | Insert line below/above |
⇧ ⌘ \ | Jump to matching bracket |
⌘ ↑ / ⌘ ↓ | Go to beginning/end of file |
⌘ K + ⌘ C | Add line comment |
⌘ K + ⌘ U | Remove line comment |
⌘ / | Toggle line comment |
⇧ ⌥ A | Toggle block comment |
⌥ + click | Insert cursor |
⌥ ⌘ ↑ | Insert cursor above |
⌥ ⌘ ↓ | Insert cursor below |
⌘ U | Undo last cursor operation |
⇧ ⌥ I | Insert cursor at end of each line selected |
⌘ L | Select current line |
⇧ ⌘ L | Select all occurrences of current selection |
(fn ) ⌘ F2 | Select all occurrences of current word |
⌃ ⇧ ⌘ → / ← | Expand / shrink selection |
⇧ ⌥ + drag mouse | Column (box) selection |
⇧ ⌥ ⌘ ↑ / ↓ | Column (box) selection up/down |
⇧ ⌥ ⌘ ← / → | Column (box) selection left/right |
(fn ) ⌘ K F12 | Open Definition to the side |
(fn ) ⇧ F12 | Show References |
(fn ) F2 | Rename Symbol |
⌘ K + ⌘ X | Trim trailing whitespace |
Linux keybindings
Keybinding (Linux) | Command |
---|---|
Ctrl S | Save Project |
Ctrl P | Go To File … |
Shift Alt F | Format Document |
Ctrl B | Toggle Sidebar |
Ctrl ` | Toggle Terminal |
Ctrl J | Toggle Preview |
Ctrl Shift E | Show File Explorer |
Ctrl Shift F | Show Find In Files |
Ctrl , | Show Settings |
F1 | Show All Commands |
Ctrl K + Ctrl 0 | Fold All |
Ctrl K + Ctrl J | Unfold All |
Ctrl K + Ctrl / | Fold All Block Comments |
Ctrl K + Ctrl 1 | Fold Level 1 |
Ctrl K + Ctrl 2 | Fold Level 2 |
Ctrl K + Ctrl 3 | Fold Level 3 |
Ctrl K + Ctrl 4 | Fold Level 4 |
Ctrl K + Ctrl 5 | Fold Level 5 |
Ctrl K + Ctrl 6 | Fold Level 6 |
Ctrl K + Ctrl 7 | Fold Level 7 |
Ctrl K + Ctrl [ | Fold Recursively |
Ctrl K + Ctrl ] | Unfold Recursively |
Ctrl 1 | Focus Editor Tab 1 |
Ctrl 2 | Focus Editor Tab 2 |
Ctrl 3 | Focus Editor Tab 3 |
Ctrl 4 | Focus Editor Tab 4 |
Ctrl 5 | Focus Editor Tab 5 |
Ctrl 6 | Focus Editor Tab 6 |
Ctrl 7 | Focus Editor Tab 7 |
Ctrl X | Cut line (empty selection) |
Ctrl C | Copy line (empty selection) |
Alt ↓ / Alt ↑ | Move line down/up |
Shift Alt ↓ / Shift Alt ↑ | Copy line down/up |
Shift Ctrl K | Delete line |
Ctrl Enter / Shift Ctrl Enter | Insert line below/above |
Shift Ctrl \ | Jump to matching bracket |
Ctrl ↑ / Ctrl ↓ | Go to beginning/end of file |
Ctrl K + Ctrl C | Add line comment |
Ctrl K + Ctrl U | Remove line comment |
Ctrl / | Toggle line comment |
Shift Alt A | Toggle block comment |
Alt + click | Insert cursor |
Alt Ctrl ↑ | Insert cursor above |
Alt Ctrl ↓ | Insert cursor below |
Ctrl U | Undo last cursor operation |
Shift Alt I | Insert cursor at end of each line selected |
Ctrl L | Select current line |
Shift Ctrl L | Select all occurrences of current selection |
Ctrl F2 | Select all occurrences of current word |
Shift Ctrl → / ← | Expand / shrink selection |
Shift Alt + drag mouse | Column (box) selection |
Shift Alt Ctrl ↑ / ↓ | Column (box) selection up/down |
Shift Alt Ctrl ← / → | Column (box) selection left/right |
Ctrl K F12 | Open Definition to the side |
Shift F12 | Show References |
F2 | Rename Symbol |
Ctrl K + Ctrl X | Trim trailing whitespace |