智能感知在多个项目解决方案中的行为?
Behavior of intellisense in solution of multiple projects?
无法(至少对我而言)找到有关这个非常具体问题的信息。
我需要知道,如果 Visual Studio 中的解决方案有多个项目,那么智能感知在这种情况下如何工作:
- does it scan all projects, and spends valuable computer resources for all projects, OR
- does intellisense work only for the project I'm currently working on in solution?
如果答案是案例 1.(希望您有一些参考来支持此声明)那么我想知道是否有什么我可以限制的inellisense activity 仅在我当前打开的项目上工作。
我不知道,但我认为这种方法可以帮助加快智能感知,并且可能还有助于减少与常规智能感知扫描相关的后台任务的数量。
这些项目并不小,我在一个解决方案中有超过 20 个项目,(顺便说一句,我对此无能为力。),由于这些频繁的解析,我已经厌倦了看到性能缓慢.
1.does it scan all projects, and spends valuable computer resources for all projects, OR
2.does intellisense work only for the project I'm currently working on in solution?
答案当然是情况 1。 Intellisense 默认情况下适用于整个解决方案,而不适用于单个项目。 只是细分了个别文件,比如c++、c#、js、XML等。你可以从 Tools-->Options-->Text Editor-->(c#/c++/javascript/....)-->general/IntelliSense
得到它。然后,您可以根据单个文件类型启用或禁用 Intellisense。
does intellisense work only for the project I'm currently working on
in solution?
我认为答案是否定的。我查找了很多有关Intellisense的文档,但没有找到任何Intellisense用于项目的示例。 Intellisense 的这个特性不是微软提出来的。如果您想要此功能,可以suggest a feature to the Support Team 引起他们的注意。
另外,可能影响VS性能的不是Intellisense。 VS性能提升可以参考this document
希望对您有所帮助。
无法(至少对我而言)找到有关这个非常具体问题的信息。
我需要知道,如果 Visual Studio 中的解决方案有多个项目,那么智能感知在这种情况下如何工作:
- does it scan all projects, and spends valuable computer resources for all projects, OR
- does intellisense work only for the project I'm currently working on in solution?
如果答案是案例 1.(希望您有一些参考来支持此声明)那么我想知道是否有什么我可以限制的inellisense activity 仅在我当前打开的项目上工作。
我不知道,但我认为这种方法可以帮助加快智能感知,并且可能还有助于减少与常规智能感知扫描相关的后台任务的数量。
这些项目并不小,我在一个解决方案中有超过 20 个项目,(顺便说一句,我对此无能为力。),由于这些频繁的解析,我已经厌倦了看到性能缓慢.
1.does it scan all projects, and spends valuable computer resources for all projects, OR
2.does intellisense work only for the project I'm currently working on in solution?
答案当然是情况 1。 Intellisense 默认情况下适用于整个解决方案,而不适用于单个项目。 只是细分了个别文件,比如c++、c#、js、XML等。你可以从 Tools-->Options-->Text Editor-->(c#/c++/javascript/....)-->general/IntelliSense
得到它。然后,您可以根据单个文件类型启用或禁用 Intellisense。
does intellisense work only for the project I'm currently working on in solution?
我认为答案是否定的。我查找了很多有关Intellisense的文档,但没有找到任何Intellisense用于项目的示例。 Intellisense 的这个特性不是微软提出来的。如果您想要此功能,可以suggest a feature to the Support Team 引起他们的注意。
另外,可能影响VS性能的不是Intellisense。 VS性能提升可以参考this document
希望对您有所帮助。