DEV Community

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

Collapse
 
jnschrag profile image
Jacque Schrag

My big three are:

  1. Lorem Ipsum: Typing "lorem" and hitting tab will generate a whole paragraph of lorem ipsum text.
  2. A SASS include statement for a custom mixin I use for media queries.
  3. Console.log: Typing "cl" and hitting tab will generate console.log([Cursor Here])
Collapse
 
deefourple profile image
Dave Dehghani

I use a console.log() snippet all the time.

As an added bonus I put a matching variable/value cursor like this:

console.log("[Cursor Here]", [Cursor Here])

Collapse
 
wolfhoundjesse profile image
Jesse M. Holmes

I like this idea for when I'm not using Turbo Console Log.

Collapse
 
cnovoab profile image
cnovoab

Tip 3 is great. Is it for vim or vscode maybe?

Collapse
 
jnschrag profile image
Jacque Schrag

I use it on VS Code. :)