Visual Studio 2010/Resharper - 按类别分类的智能感知?
我有一个 Animal 类,我的 Cat 类继承了它。
当我将鼠标悬停在猫实例上或按 CTRL+Space 查看完整列表时,我希望首先仅查看猫的方法和属性,然后是动物的方法和属性,而不是全部属性和方法在一个按字母顺序排列的大列表中。
MonoDevelop 通过第二次 CTRL+Space 键来完成此操作,非常方便。
Visual Studio 2010 或 Resharper 是否具有此类功能?
I have an Animal class which my Cat class inherits.
When I hover over a cat instance or press CTRL+Space to see a full list, I wish to see only cat methods and properties first, then animal ones after instead of all properties and methods in one big alphabetical list.
MonoDevelop does this with a second CTRL+Space key press and is very handy.
Does Visual Studio 2010 or Resharper have this type of capability?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Visual Studio 2010 不支持此类功能。无论如何,自 2008 年以来,这是一个很大的改进,您不需要从头开始输入名称...;-)
据我所知,resharper 也没有完全相同的模式。然而,它更加智能和可配置。您还可以使用不同的组合键来完成不同类型的操作。
您可以在此处阅读有关代码协助功能的更多信息。
无论如何,请在购买前检查试用版确保它适合您。您还可以检查其他综合扩展,例如 CodeRush Pro 等。
Visual Studio 2010 does not support such functionality. Anyway, since 2008 it is a big improvement that you do not need to type the name starting from its beginning.... ;-)
As far as I know, resharper does not have exactly the same mode too. However it is far more intelligent and configurable. There are also different key combination you can use for different types of completion.
You can read more about Code Assistance features here
Anyway, check the trial version before buying to be sure that it suits you. You can check also other comprehensive extensions like CodeRush Pro, etc.
ReSharper 以粗体字体显示 Cat 的成员,并以常规字体显示继承的成员。所以你看到了差异。
ReSharper displays Cat's members in bold font and inherited members in regular font. So you see the difference.