DEV Community

Discussion on: What are your "must have" custom snippets for your editor/IDE?

Collapse
 
denolfe profile image
Elliot DeNolf • Edited

I utilize quite a few snippets. Here are the ones I use most often with JS/TS:

"af" for arrow functions: () =>
"afb" arrow function body: () => { }
"desc" for jest describe block: describe('', () => { })
"it" for jest it block: it('', () => { })
"imp" for normal import
"imn" for import named
"ima" for import as
"c" for scaffolding a full class
"ctor" for a constructor

For those using WebStorm or IntelliJ variants, here is a nice starter that I came across: github.com/blakedietz/js-live-temp...