开发者

Predefined Literals for .snippets

I am creating a few snippets and have found that there are a couple pre defined literals that can be used, such as $selected$ and $end$. $selected$ is the selected text when the snippet is inserted. $end$ is where the cursor will be whe开发者_开发问答n the snippet is inserted.

Are there any other pre-defined literals that can be used as well?


Here it mentions only those two you've said - $selected$ and $end$. So probably that's all.

Literals and objects cannot contain an ID element with a value of selected or end. The value $selected$ represents text selected in the document that is to be inserted into the snippet when it is invoked. $end$ marks the location to place the cursor after the code snippet is inserted.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜