# shortcuts

⌘：cmd     ⌥：option     ⇧：shift     ⌃ ：control     ⇪：caps lock     ⏏：eject     ⇢: then

| shortcut                        | command                             | reference                                                                                   |
| ------------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------- |
| ⌥⇧F                             | code formatting                     | :blue\_book: [Formatting](https://code.visualstudio.com/docs/editor/codebasics#_formatting) |
| ⌥⌘\[                            | fold                                | :blue\_book: [Folding](https://code.visualstudio.com/docs/editor/codebasics#_folding)       |
| ⌥⌘]                             | unfold                              |                                                                                             |
| ⌘K⇢0 (zero)                     | fold all                            |                                                                                             |
| ⌘K⇢J                            | unfold all                          |                                                                                             |
| ⌘K⇢\[                           | recursive fold                      |                                                                                             |
| ⌘K⇢]                            | recursive unfold                    |                                                                                             |
| ⌘K⇢2 (345...)                   | fold level 2 (345...) except cursor |                                                                                             |
| ⇧ + click (on **folding icon**) | recursive fold/unfold               |                                                                                             |
| ⇧⌘K                             | delete line                         |                                                                                             |
| ⌘D⇢T                            | remove tag                          | user-defined                                                                                |
| F2                              | rename tag                          | :speaking\_head: [StackOverflow](https://stackoverflow.com/a/59221721/5409815)              |
