Cheatography
https://cheatography.com
VSCode cheatsheet for usage with mongodb, typescript, react, and git. + dash usage
This is a draft cheat sheet. It is a work in progress and is not finished yet.
VSCode editor
Add cursor above/below |
opt + cmd + up/down |
Add cursors to line ends |
shift + opt + | |
Debug view |
cmd + shift + d |
Explorer view |
cmd + shift + e |
Show call hierarchy |
shift + opt + h |
Change all occurrences |
cmd + F2 |
Change language mode |
cmd + k m |
Delete all left/right |
cmd + back/del |
Expand selection |
ctrl + shift + right/left |
Copy path of active file |
opt + shift + c |
Reveal in finder |
opt + cmd + r |
Find next |
F3 |
Find prev |
shift + F3 |
Focus breadcrumbs |
cmd + shift + ; |
Fold |
opt + cmd + [ |
Go back |
ctrl + - |
Go forward |
ctrl + shift + - |
Go to implementation |
cmd + F12 |
Go to line/column |
cmd + shift + w |
Go to next change |
opt + F5 |
Go to prev change |
shift + opt + F5 |
Go to next reference |
F4 |
Go to prev reference |
shift + F4 |
Join lines |
ctrl + j |
Refactor |
cmd + shift + r |
Replace |
opt + cmd + f |
Peek call hierarchy |
opt + shift + h |
Peek definition |
opt + F12 |
Peek implementations |
cmd + shift + F12 |
Set selection anchor |
cmd + k cmd + b |
next in quick open |
ctrl + n |
prev in quick open |
ctrl + p |
Show next inline suggestion |
opt + ] |
Show hover |
cmd +k cmd + i |
Trigger suggest |
cmd + i |
open prev/next editor |
cmd + shift + [/] |
zen mode |
cmd + k z |
trim trailing whitespace |
cmd + k cmd + x |
|
|
Jest & Vitest
Run jest test |
cmd + j r |
Run vitest test |
cmd + v r |
Other
Compare toggle inline view |
cmd + t i |
Show incoming calls |
cmd + s i |
Open clipboard |
opt + cmd + c |
Search notion |
cmd + shift + k |
Open swissknife |
cmd + shift + 9 |
Snippets
log |
console.log |
fc |
Function Component |
it |
it test |
af |
async function |
sleep |
inline sleep function |
rtl |
RTL setup |
jest |
Jest setup |
styl |
Styled file |
sc |
Styled component |
rf |
Render function |
|
|
|
|
|