Search code examples
intellij-ideaphpstormwebstormjetbrains-ide

How to indicate the a variable should be edited first


I have the following live template:

import {$NAME$} from "$PATH$";
$END$

When it's inserted into an editor, the order of inputting variables is defined as:

import {1} from "2";

Is there any way to change it to:

import {2} from "1";

?


Solution

  • Just use Edit variables button when editing that Live Template and then use Arrow Up & Arrow Down buttons to rearrange them -- make PATH variable first in the list.

    enter image description here