From 6b29cb5c7123bfd747edd39515bf8dee18fc6410 Mon Sep 17 00:00:00 2001 From: VesitoDev <88315648+VesitoDev@users.noreply.github.com> Date: Thu, 2 Dec 2021 15:35:56 +0200 Subject: [PATCH] added shortcuts in vscode.md (more info in deskcription) added general and basic editing shortcuts for vs code. I added those in the Linux category, I am not sure if they are the same for other OSs but in my resources, they said they are for Linux so if there are mistakes please correct them. Also, let me know if I should add more shortcuts. --- tools/vscode.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) 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