Skip to content

Instantly share code, notes, and snippets.

@alexengrig
Last active April 18, 2020 12:35
Show Gist options
  • Save alexengrig/dd57294518705d4218b9aed695e2d7a8 to your computer and use it in GitHub Desktop.
Save alexengrig/dd57294518705d4218b9aed695e2d7a8 to your computer and use it in GitHub Desktop.
Live Template - js console.log(")

Live Template - js console.log(") for JetBrains

Go to Settings > Editor > Live Templates > JavaScript > Add (+)

Abbreviation:

log

Description:

Inserts console.log(")

Template text:

console.log('Class: $CLASS$, Function: $FUNCTION$, Line $LINE$ $PARAM_TEXT$($EXPECTED$): ', 
  $PARAM$);$END$

Template variables (Click Edit variables):

Name Expression Default value Slip if defined
CLASS jsClassName() checked
FUNCTION jsMethodName() checked
LINE lineNumber() checked
PARAM
PARAM_TEXT PARAM checked
EXPECTED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment