开发者

Predefined Literals for .snippets

开发者 https://www.devze.com 2023-02-18 04:38 出处:网络
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. $

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

精彩评论

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

关注公众号