diff --git a/tools/vscode.md b/tools/vscode.md index f5a6e8b..f455b08 100644 --- a/tools/vscode.md +++ b/tools/vscode.md @@ -1,5 +1,39 @@ # Visual Studio CheatSheet +## Shortcuts + +### Linux + +#### General + +- `Ctrl`+`Shift`+`P`, `F1`: Show Command Palette +- `Ctrl`+`P`: Quick Open, Go to File +- `Ctrl`+`Shift`+`N`: New window/instance +- `Ctrl`+`W`: Close window/instance +- `Ctrl`+`,`: User Settings +- `Ctrl`+`K`, `Ctrl`+`S`: Keyboard Shortcuts + +#### Basic editing + +- `Ctrl`+`X`: Cut line (empty selection) +- `Ctrl`+`C`: Copy line (empty selection) +- `Ctrl`+`↓/↑`: Move line down / up +- `Ctrl`+`Shift`+`K`: Delete line +- `Ctrl`+`Enter` / `Ctrl`+`Shift`+`Enter`: Insert line below / above +- `Ctrl`+`Shift`+`\`: Jump to matching bracket +- `Ctrl`+`]` / `Ctrl`+`[`: Indent / Outdent line +- `Ctrl`+`Home` / `End`: Go to beginning / end of file +- `Ctrl`+`↑ / ↓`: Scroll line up / down +- `Alt`+`PgUp` / `PgDn`: Scroll page up / down +- `Ctrl`+`Shift`+`[ / ]`: Fold / unfold region +- `Ctrl`+`K`, `Ctrl`+`[ / ]`: Fold / unfold all subregions +- `Ctrl`+`K`, `Ctrl`+`0` / `Ctrl`+`K`, `Ctrl`+`J`: Fold /Unfold all regions +- `Ctrl`+`K`, `Ctrl`+`C`: Add line comment +- `Ctrl`+`K`, `Ctrl`+`U`: Remove line comment +- `Ctrl`+`/`: Toggle line comment +- `Ctrl`+`Shift`+`A`: Toggle block comment +- `Alt`+`Z`: Toggle word wrap + ## Useful Extensions ### HTML & CSS