简体   繁体   English

Visual Studio智能感知类建议

[英]Visual Studio intellisense class suggestion

Is it possible to make Visual Studio list all classes, and not just the ones from the imported namespaces? 是否可以使Visual Studio列出所有类,而不仅是导入的命名空间中的类? The only way I know of auto-importing types this way is to type in the class name exactly right, then right-click and import. 我知道这种自动导入类型的唯一方法是完全正确地键入类名,然后右键单击并导入。 Something like Eclipse, which can list all available classes as you are typing. 诸如Eclipse之类的东西,可以在您键入时列出所有可用的类。

As mentioned here: Is it possible for Intellisense to search for classes in unimported namespaces like in Eclipse? 如此处所述: Intellisense是否有可能像Eclipse中那样在未导入的名称空间中搜索类?

You may use the IntelliSense Extender Plugin. 您可以使用IntelliSense Extender插件。 For Visual Studio 2017: 对于Visual Studio 2017:

https://marketplace.visualstudio.com/items?itemName=Dreamescaper.IntelliSenseExtender https://marketplace.visualstudio.com/items?itemName=Dreamescaper.IntelliSenseExtender

And for VS 2019: 对于VS 2019:

https://marketplace.visualstudio.com/items?itemName=Dreamescaper.IntellisenseExtender2019 https://marketplace.visualstudio.com/items?itemName=Dreamescaper.IntellisenseExtender2019

It includes the types of all projects in the solution and of all referenced packages. 它包括解决方案中所有项目的类型以及所有引用包的类型。 Selecting an not imported type from IntelliSense will then auto import that type. 然后从IntelliSense中选择一个未导入的类型将自动导入该类型。

Not sure about Intellisense. 不确定Intellisense。

There's always the Object Browser. 总有对象浏览器。

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

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