Collection of useful VS Code shortcuts
| Shortcuts | description |
|---|---|
| Ctrl + , | open setting |
| Ctrl + Shift + N | New Window instance |
| Ctrl + W | Close Window |
| Ctrl + N | New File |
| Shortcuts | description |
|---|---|
| Alt + Up | Swap current line to the line above |
| Alt + Down | Swap current line to the line below |
| Ctrl + X | Cut current line or highlighted lines |
| Ctrl + Shift + [ | fold block |
| Ctrl + Shift + ] | unfold block |
| Shortcuts | description |
|---|---|
| Ctrl + P | Go to File |
| Ctrl + G | Go to line |
| Ctrl + Tab | Switch tab in current navigation group |
| Ctrl + 1(or other number) | Switch navigation group |
| Ctrl + K Ctrl + Right | Move current tab to next navigation group |
| Ctrl + K Ctrl + Left | Move current tab to previos navigation group |
| Ctrl + K Right | Switch with next navigation group |
| Ctrl + K Left | Switch with previous navigation group |
| Shortcuts | description |
|---|---|
| Ctrl + B | Toggle sidebar |
| Ctrl + Enter(When focus in Sidebar) | Open file to the side |
| F2(When focus in Sidebar) | rename highlighted file |
| Ctrl + Alt + R(When focus in Sidebar) | open containing folder |
| Shortcuts | description |
|---|---|
| Ctrl + D | Highlight and insert cursor to the next match term |
| Ctrl + Shift + L | Highlight and insert cursor to the all match term |
| Ctrl + H | Search and replace |
| Shortcuts | description |
|---|---|
| Shift + Alt + Up | Insert cursor to the line above |
| Shift + Alt + Down | Insert cursor to the line below |
| Ctrl + I | Hightlight current line |
| Shift + Up | Expand hightlight line above current line |
| Shift + Down | Expand hightlight line below current line |
| Ctrl + Shift + Right | Expand highlight to nearest right term |
| Ctrl + Shift + Left | Expand highlight to nearest left term |
| Ctrl + Alt + Right | Expand highlight to nearest block |
| Ctrl + A | Select All |
| Shortcuts | description |
|---|---|
| Ctrl + Space | Trigger suggestion to term near current cursor |
| Ctrl + Shift + Space | Trigger parameter hint |