Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
837 views
in Technique[技术] by (71.8m points)

intellij idea - 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";

?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...