Why is there no intellisense in a CLR/CLI project

2019-07-24 11:30发布

问题:

I don't know if I have done anything wrong, but when I try to write code there are no intellisense popups indicating options or errors. I am creating a CLR/CLI type of project with Microsoft's Visual C++ 2010.

回答1:

You're not doing anything wrong, Intellisense is not supported in Managed C++ (C++/CLI).

There is a long blog post explaining the details at the Visual C++ blog.

Edit: Correcting name of the blog as per comment. :)



回答2:

See the 2nd comment, in this blog post from May 2009: http://blogs.msdn.com/b/vcblog/archive/2009/05/27/rebuilding-intellisense.aspx

excerpt:

As part of this re-architecture, we had to make the difficult decision to reduce the scope to native C++ only for Intellisense. We still index symbols coming from C++/CLI code and you can browse them with Class View etc...

The wording is a little opaque, but I think the meaning is: there is no intellisense in C++/CLI projects in VS2010.