Cheatography
https://cheatography.com
Some of my more used commands and shortcuts for development
This is a draft cheat sheet. It is a work in progress and is not finished yet.
VSCode Window commands
Ctrl + P |
Search files |
Ctrl + J |
Toggle terminal |
Ctrl + , |
Open settings |
Ctrl + 1...9 |
Focus on 1st editor, 2nd editor... |
Ctrl + Shift + P |
Open command palette |
Ctrl + < |
Split editor |
Ctrl + N |
Create new file |
Ctrl + W |
Close current file |
Ctrl + B |
Toggle left sidebar |
Ctrl + Shift + N |
New window |
Ctrl + K O |
Open current file in new window |
Ctrl + Shift + W |
Close current window |
|
|
VSCode Inline Editor commands
Ctrl+Enter |
Create new line below cursor |
Alt+Shift+o |
Remove unused imports |
Ctrl+Shift+o |
Jump to a symbol (variable, function) |
Ctrl+l (multiple times) |
Highlight line, then lines proceeding it |
Shift+Click |
Highlight all text between the cursor and clicked position |
F12 |
Cycle through references of a symbol |
Alt+Up/Down |
Move line up/down |
Ctrl+Click |
Go to definition of a function/variable |
Ctrl+Space |
Show all possible parameters of function |
Ctrl+Shift+Alt+Up/Down |
Copy line up/down |
F2 |
Rename all instances of the word at cursor |
Ctrl+Shift+K |
Delete line |
Alt+Click |
Add multiline cursors |
Ctrl+Shift+[ |
Fold region |
Ctrl+Shift+] |
Unfold region |
Ctrl+Home / Ctrl+End |
Go to start of file / Go to end of file |
|
|
Terminal (Linux)
Ctrl + PgDwn/PgUp |
Change terminal tab |
Alt + <num> |
Change to numbered tab |
Ctrl + Shift + T |
Create new tab |
Ctrl + Shift + W |
Close tab |
Tmux
Ctrl+B, C |
Create a new tab |
Ctrl+B, [ |
Enter scroll mode |
Ctrl+B, W |
View all open tabs |
Ctrl+B, N |
Switch to next tab |
Ctr+B, 1,2...9 |
Switch to specific numbered tab |
Ctrl+B, " (double quote) |
Create horizontal pane |
Ctrl+B, % |
Create vertical pane |
Ctrl+B, Up/Down/Left/Right |
Navigate between panes |
exit |
Close panes and tabs |
Hold Ctrl, B, Arrows |
Resize panes |
|