在R#Snippet模板中更改文字条目的顺序(Change Order of Literal Entries in R# Snippet Templates)

编程入门 行业动态 更新时间:2024-10-26 10:37:02
在R#Snippet模板中更改文字条目的顺序(Change Order of Literal Entries in R# Snippet Templates)

所以foreach的R#模板看起来像这样:

foreach ($TYPE$ $VARIABLE$ in $COLLECTION$) { $END$ }

问题是它让我跳转到$ COLLECTION $,然后是$ TYPE $,然后是$ VARIABLE $,但是我的心理过程是$ TYPE $,$ VARIABLE $,$ COLLECTION $,而且订单让我一直绊倒。 有没有办法改变这些输入的顺序? 我在模板中没有看到任何指定顺序的内容。

编辑

当然,我一提出问题就找到了答案。 从模板资源管理器编辑模板并更改右侧变量的顺序。

So the R# template for foreach looks like this:

foreach ($TYPE$ $VARIABLE$ in $COLLECTION$) { $END$ }

The problem is that it jumps me to enter $COLLECTION$, then $TYPE$, then $VARIABLE$, but my mental process is $TYPE$, $VARIABLE$, $COLLECTION$, and the ordering is tripping me up all the time. Is there a way to change the order in which these get entered? I didn't see anything in the template specifying order.

EDIT

Of course, I found the answer as soon as posed the question. Edit the template from Template Explorer and change the order of the variables on the right.

最满意答案

从模板资源管理器编辑模板并更改右侧变量的顺序。

Edit the template from Template Explorer and change the order of the variables on the right.

更多推荐

本文发布于:2023-08-04 08:16:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1412410.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:目的   顺序   模板   文字   Snippet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!