Open VSCode, then:
- Press
Ctrl/Cmd + Shift + P
>Snippets: Configure user snippets
- Choose your programming language e.g.
JavaScript
- Copy the section(s) you want from the
snippet.json
file below ✌️
Repeat for JavaScript JSX
, TypeScript
and TypeScript JSX
Enjoy! ❤️
If you find yourself frequently typing console.log()
, .warn()
and/or .error()
in order to inspect values at certain points in time during your code's execution, then you just might fancy a few shortcuts:
- type
cl[TAB]
to getconsole.log(|)
(where|
is the new cursor location, right where you want it cw[TAB]
->console.warn(|)
ce[TAB]
->console.error(|)