Show Menu
Cheatography

VSCode TS Keyboard Shortcuts (DRAFT) by

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 occurr­ences
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 breadc­rumbs
cmd + shift + ;
Fold
opt + cmd + [
Go back
ctrl + -
Go forward
ctrl + shift + -
Go to implem­ent­ation
cmd + F12
Go to line/c­olumn
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 implem­ent­ations
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
consol­e.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