所以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.
更多推荐
发布评论