How to indicate the a variable should be edited first

落花浮王杯 提交于 2019-11-30 09:30:55

问题


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

?


回答1:


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.




回答2:


If you type the word that generates this code for example import, it puts the cursor at {$NAME$}, type 2, then TAB and the cursor will start at $PATH$ and type 1 Then TAB and finally type ?



来源:https://stackoverflow.com/questions/40605039/how-to-indicate-the-a-variable-should-be-edited-first

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!