Daniel Kobe Daniel Kobe - 8 months ago 49
Javascript Question

My custom Webstorm Live Template isn't working

I want to be able to type

and then click tab and have it create the following
//TODO (My Name):
but when I created the live template with the abbreviation
and I type
in my JS file it doesn't do anything.
Cmd + J
does not show the todo template either. Heres how I create it enter image description here


You need to indicate the position of the cursor after the template is expanded with $END$:

enter image description here

For more information: https://www.jetbrains.com/help/idea/2016.2/live-templates-2.html

When you are ready to use the template in your editor:

  • just type: todo
  • and then click enter.