VSCode Snippets for JavaScript, TypeScript, React/Next.js, React Query, SWR, Redux, Jest, React Hook Form, Emotion CSS, & many more
Write code faster using snippets!
Just type the snippet keyword (for example, type rfc), a suggestion will appear, then press Tab.
If there is no suggestion, use Ctrl+Space to open it.
- You can just type directly 👉
rfc - You can also use
$prefix 👉$rfc - You don't need to write a complete snippet prefix. For example, there is
useStatesnippet, you can just typeuseStand the suggestion will appear.
For TypeScript snippets:
- You can add
tsat the end 👉rfcfor JS becamerfctsfor TS - Or you can use
$$prefix 👉$$rfc
- Type
$(and pressCtrl+Spaceif necessary), then check all available snippets. - Check React snippets using
$r - Check Next.js snippets using
$n - Check React Native snippets using
$rn - Check React Router snippets using
$rou - Check React Query snippets using
$rq - Check SWR snippets using
$swr - Check Redux snippets using
$rx - Check Jest snippets using
$t - Check React Hook Form snippets using
$rhf - Check Zustand snippets using
$zu - Check Emotion CSS snippets using
$emo - Check Yup snippets using
$yup - Check wrapper-snippets using
$_
Type _ or $_ to check all available wrapper snippets
Select text and copy it 📋 write snippet and boom! 🪄💥
Because you might not need that. VSCode has built-in feature for auto-import your modules. Use Ctrl+Space on your variable and a popup will appear.
If auto import doesn't appear, open command palette (Ctrl+Shift+P) and select restart TS server.








