|
| 1 | +--- |
| 2 | +title: "Essential Editor Shortcuts Guide" |
| 3 | +lang: en |
| 4 | +layout: post |
| 5 | +audio: false |
| 6 | +translated: false |
| 7 | +generated: true |
| 8 | +--- |
| 9 | + |
| 10 | +| # | Command Palette Name | Description | Default Shortcut (Windows/Linux) | |
| 11 | +|---|----------------------|-------------|----------------------------------| |
| 12 | +| 1 | Go to File... | Quickly open a file by typing its name | Ctrl + P | |
| 13 | +| 2 | Go to Symbol in Editor... | Navigate to symbols (functions, variables) in the current file | Ctrl + Shift + O | |
| 14 | +| 3 | Go to Symbol in Workspace... | Navigate to symbols across the entire workspace | Ctrl + T | |
| 15 | +| 4 | Go to Line... | Jump to a specific line in the current file | Ctrl + G | |
| 16 | +| 5 | Find in Files | Search for text across all files in the workspace | Ctrl + Shift + F | |
| 17 | +| 6 | Replace in Files | Replace text across all files in the workspace | Ctrl + Shift + H | |
| 18 | +| 7 | Toggle Line Comment | Comment or uncomment the selected lines | Ctrl + / | |
| 19 | +| 8 | Toggle Block Comment | Comment or uncomment a block of code | Shift + Alt + A | |
| 20 | +| 9 | Format Document | Format the entire document according to language rules | Shift + Alt + F | |
| 21 | +| 10 | Format Selection | Format the selected code | Ctrl + K Ctrl + F | |
| 22 | +| 11 | Trim Trailing Whitespace | Remove trailing spaces from lines | (No default) | |
| 23 | +| 12 | Change Language Mode | Set the language mode for the current file | (No default) | |
| 24 | +| 13 | Open Settings (UI) | Open the settings editor | Ctrl + , | |
| 25 | +| 14 | Open Keyboard Shortcuts | Customize keyboard shortcuts | Ctrl + K Ctrl + S | |
| 26 | +| 15 | Split Editor | Split the editor view | Ctrl + \ | |
| 27 | +| 16 | Close Editor | Close the current editor tab | Ctrl + W | |
| 28 | +| 17 | Toggle Terminal | Show or hide the integrated terminal | Ctrl + ` | |
| 29 | +| 18 | Terminal: Create New Terminal | Create a new terminal instance | (No default) | |
| 30 | +| 19 | Git: Clone | Clone a Git repository | (No default) | |
| 31 | +| 20 | Git: Init | Initialize a new Git repository | (No default) | |
| 32 | +| 21 | Git: Commit | Commit staged changes | (No default) | |
| 33 | +| 22 | Git: Stage All Changes | Stage all modified files for commit | (No default) | |
| 34 | +| 23 | Git: Pull | Pull changes from remote repository | (No default) | |
| 35 | +| 24 | Git: Push | Push local changes to remote repository | (No default) | |
| 36 | +| 25 | Git: Sync | Sync local and remote repositories (pull then push) | (No default) | |
| 37 | +| 26 | Git: Checkout to... | Switch to a different branch | (No default) | |
| 38 | +| 27 | Extensions: Install Extensions | Install new extensions from the marketplace | (No default) | |
| 39 | +| 28 | Extensions: Show Installed Extensions | View and manage installed extensions | (No default) | |
| 40 | +| 29 | Debug: Start Debugging | Start a debugging session | F5 | |
| 41 | +| 30 | Debug: Stop Debugging | Stop the current debugging session | Shift + F5 | |
| 42 | +| 31 | Debug: Restart | Restart the debugging session | Ctrl + Shift + F5 | |
| 43 | +| 32 | Run Without Debugging | Run code without attaching debugger | Ctrl + F5 | |
| 44 | +| 33 | Tasks: Run Task | Run a defined task from tasks.json | (No default) | |
| 45 | +| 34 | Tasks: Run Build Task | Run the default build task | Ctrl + Shift + B | |
| 46 | +| 35 | Toggle Problems | Show or hide the Problems panel | Ctrl + Shift + M | |
| 47 | +| 36 | Toggle Output | Show or hide the Output panel | Ctrl + Shift + U | |
| 48 | +| 37 | Toggle Debug Console | Show or hide the Debug Console | Ctrl + Shift + Y | |
| 49 | +| 38 | Toggle Zen Mode | Enter distraction-free Zen mode | Ctrl + K Z | |
| 50 | +| 39 | Toggle Full Screen | Toggle full screen mode | F11 | |
| 51 | +| 40 | Toggle Sidebar Visibility | Show or hide the sidebar | Ctrl + B | |
| 52 | +| 41 | Toggle Word Wrap | Enable or disable word wrapping | Alt + Z | |
| 53 | +| 42 | Add Cursor Above | Add a multi-cursor above the current one | Ctrl + Alt + Up | |
| 54 | +| 43 | Add Cursor Below | Add a multi-cursor below the current one | Ctrl + Alt + Down | |
| 55 | +| 44 | Move Line Up | Move the current line up | Alt + Up | |
| 56 | +| 45 | Move Line Down | Move the current line down | Alt + Down | |
| 57 | +| 46 | Copy Line Up | Duplicate the current line above | Shift + Alt + Up | |
| 58 | +| 47 | Copy Line Down | Duplicate the current line below | Shift + Alt + Down | |
| 59 | +| 48 | Delete Line | Delete the current line | Ctrl + Shift + K | |
| 60 | +| 49 | Fold All | Fold all regions in the editor | Ctrl + K Ctrl + 0 | |
| 61 | +| 50 | Unfold All | Unfold all regions in the editor | Ctrl + K Ctrl + J |
0 commit comments