如何让 Resharper 使用 Visual Studio 的片段 [英] How to get Resharper to use Visual Studio's snippets

查看:29
本文介绍了如何让 Resharper 使用 Visual Studio 的片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 VS2008 中安装了 Resharper,它似乎接管了我开始依赖的一些片段.例如,prop、foreach 等...

I installed Resharper in VS2008 and it seems to have taken over some of the snippets I've come to rely on. For instance, prop, foreach, etc...

我如何告诉 Resharper 让 VS2008 使用它自己的代码段,或者至少不要覆盖已经存在的代码段.
更好的是,有没有办法有选择地告诉 Resharper 它可以覆盖哪些片段,哪些不应该覆盖?

How can I tell Resharper to let VS2008 use its own snippets or at least not to overwrite snippets that already exist.
Better yet, is there a way to selectively tell Resharper which snippets it can overwrite and which it shouldn't?

我知道 Live Templates 菜单项可以让您选择,但是在取消选择foreach"之后,例如,VS(或者可能是 Resharper)将其视为一个函数.换句话说,当我输入 'fore' 并点击 tab 进行自动完成时,我最终得到的是 'foreach()' 而不是代码片段操作.

I know about the Live Templates menu item that lets you pick and choose, but after deselecting 'foreach', for example, VS (or probably Resharper) treats it as a function. In other words, when I type 'fore' and hit tab for autocomplete, I end up with 'foreach()' instead of the snippet operation.

谢谢

推荐答案

您可以从 Live Templates 窗口中取消选中您不想使用的那些.foreach 模板在迭代组下.

You can uncheck the ones that you don't want to use from Live Templates window. foreach template is under iterations group.

这篇关于如何让 Resharper 使用 Visual Studio 的片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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