重新共享:带有tab + tab的代码段 [英] Resharper: Code snippets with tab+tab

查看:82
本文介绍了重新共享:带有tab + tab的代码段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS中,要使用代码段(例如自动实现的属性),请键入 prop,然后按两次TAB键。

但是R#(我正在使用R#6)插入代码段

在某处有一个选项,可以在其中设置使用两个选项卡吗?

In VS, to use snippets (for example auto-implented property) I typed "prop", then hit TAB twice.
However R# (I'm using R#6) inserts the snippet after ONE tab, causing me to always mistype something.
Is there an option somewhere, where I can set it to use two tabs?

推荐答案

不幸的是,我没有办法知道让您将ReSharper实时模板的部署重新分配给两个标签命中,而不是一个命中。

Unfortunately there's no way that I'm aware of that would let you reassign deployment of ReSharper live templates to two tab hits instead of a single hit.

但是,在您习惯单选项卡部署之前,您可以按Shift + Tab返回到先前的模板热点,以防止混乱。

However, until you've got used to the single-tab deployment, you can Shift+Tab to go back to the previous template hotspot, which prevents messing things up.

另一种选择是有选择地关闭与您用于定期部署的Visual Studio代码段冲突的ReSharper动态模板。
为此,请转到ReSharper>实时模板,然后在模板资源管理器中的实时模板下,完全取消选择预定义模板,或展开此类别并关闭所选模板-在您的示例中为 prop,您应该关闭ReSharper的 prop和propg(后者在 Imported Visual C#代码段下)

Another option would be to selectively turn off ReSharper live templates that conflict with Visual Studio snippets that you're used to deploy on a regular basis. To do that, go to ReSharper > Live Templates, and in the Templates Explorer, under Live Templates, either deselect "Predefined templates" altogether or expand this category and turn off selected templates - in your example with "prop", you should turn off ReSharper's "prop" and propg (the latter is under "Imported Visual C# snippets")

这篇关于重新共享:带有tab + tab的代码段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆