Search code examples
phpstormlive-templates

How to get $END$ to be replaced by cursor in PHP Storm Live Templates


I created a live template in PHP Storm:

// $date$: $END$;

which I understand should print the date, and then put the cursor in the place of $END$.

However, when I type the abbreviation and press TAB, it highlights the date:

enter image description here

How can I get the cursor to be waiting in front of the semicolon?


Solution

  • When you open the "Edit variables" dialog, check the "skip if defined" checkbox to skip editing the $date$ variable.