简体   繁体   English

Visual Studio 2010 for C ++ Win32中的智能感知能力很差

[英]Poor intellisense in Visual Studio 2010 for C++ Win32

For a long time i was programming in Visual Studio 2010 in C#. 长期以来,我一直在Visual Studio 2010中使用C#进行编程。 Really good thing there was extensive documentation in Lntellisense. 真正的好事是Lntellisense中有大量文档。 Lately i have decided to switch to C++ Win32 (which i believe is Native C++, am I right?). 最近我决定切换到C ++ Win32(我相信是Native C ++,对吗?)。 I have then spotted Intellisense is only showing functions' declarations (with no descriptions and with no parameter descriptions). 然后我发现Intellisense仅显示函数的声明(没有描述,也没有参数描述)。 It really makes programming hard as it is hard for me to remember all of the functions' parameters. 确实使编程变得困难,因为我很难记住所有函数的参数。

So the is: is there any way to make Intellisense to show documentation and parameter list descriptions for C++ win32 just like it was in C#? 所以是:有没有办法使Intellisense像在C#中一样显示C ++ win32的文档和参数列表说明?

If there is no such way, so is there way to provide my own XML documentation for existing win32 functions for C++? 如果没有这种方法,那么有没有办法为C ++的现有win32函数提供我自己的XML文档? I could then write documentation for my most used functions for myself, which would be really helpful. 然后,我可以为自己编写最常用功能的文档,这将非常有帮助。

I have also noticed typing three slashes before function declaration does nothing (in C# it was used to write XML documentation for specified objecT). 我还注意到在函数声明不执行任何操作之前键入三个斜杠(在C#中,它用于为指定的objecT编写XML文档)。 Is there any way to bring back such functionality? 有什么办法可以恢复这种功能吗?

You can try using Visual Assist X for better intellisense. 您可以尝试使用Visual Assist X以获得更好的智能感知。 It's a commercial tool (I'm not affiliated with them but I've been using it for a while). 这是一种商业工具(我不隶属于他们,但我已经使用了一段时间了)。 It provides features for most of the things you asked for through enhanced intellisense and macros / shortcuts. 它通过增强的智能感知和宏/快捷方式提供了您要求的大多数功能。

For the most part I like it but there are some annoying issues with it that I had to learn to live with. 在大多数情况下,我喜欢它,但与此同时,我不得不学习忍受一些烦人的问题。 Support is all right but every once in a while they break something that used to work before. 支持是可以的,但有时会破坏以前曾经起作用的东西。

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

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