简体   繁体   English

Visual Studio 2010/Resharper - Class 的智能感知?

[英]Visual Studio 2010/Resharper - Intellisense by Class?

I have an Animal class which my Cat class inherits.我有一个动物class 我的class 继承。

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.当我在 cat 实例上 hover 或按CTRL + Space以查看完整列表时,我希望首先只查看 cat 方法和属性,然后是动物的方法和属性,而不是一个大字母列表中的所有属性和方法。

MonoDevelop does this with a second CTRL + Space key press and is very handy. MonoDevelop 通过第二次CTRL + Space键来执行此操作,非常方便。

Does Visual Studio 2010 or Resharper have this type of capability? Visual Studio 2010 或 Resharper 是否具有此类功能?

Visual Studio 2010 does not support such functionality. Visual Studio 2010 不支持此类功能。 Anyway, since 2008 it is a big improvement that you do not need to type the name starting from its beginning.... ;-)无论如何,自 2008 年以来,这是一个很大的改进,您无需从头开始输入名称.... ;-)

As far as I know, resharper does not have exactly the same mode too.据我所知,resharper 也没有完全相同的模式。 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.您还可以查看其他综合扩展,例如 CodeRush Pro 等。

ReSharper displays Cat's members in bold font and inherited members in regular font. ReSharper 以粗体显示 Cat 的成员,以常规字体显示继承的成员。 So you see the difference.所以你看到了区别。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM