• Advertisement
Sign in to follow this  

[ Visual Studio ( Express ) ] C++ Intellisense?

This topic is 2220 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is just a quick question as i find it rather weird.
I'm coming from C# ( using Visual Studio C# Express 2010 ) where the Intellisense is just amazing!
It lists all possible fields and methods ect ect.


Recently due to my school I'v been moving into C++ and I'v noticed the Intellisense for it is mostly none existence.
Is it some setting I'm missing or is it just lack of it period?

I know C++ is a rather ( REALLY ) complex language so It might be just that?
But I was curious If it's a setting or if it's just lack of it :)


Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
make sure you are working on a standard native C++ project.. in Visual Studio 2010, Intellisense is off for managed C++ projects.

Having said that, VS 2010 C++ Intellisense isn't on par with C#.

The solution for most "pro" is using Visual Studio Professional and a plugin named Visual AssistX that is pretty awesome and brings amazing intellisense, additional coloring and other features to C++.

Share this post


Link to post
Share on other sites
With intellisense it is quite buggy in Visual C++, as you say it is perfect in C# and moving to the C++ it can seem broken and poor in comparison.

As you have intellisense on, it is no guarantee it will work 100% properly as sometimes the database that generates the auto-completion can get broken and corrupted whilst you are working with Visual C++. So I would recommend you if that happens, close Visual Studio. Delete your *.ncb file (in Visual Studio 2008), or *.sdf file (for VS 2010 if my recollection is correct!), the db files mentioned are noticeable as they are so huge (can be well over 60MB depending on project size and library dependencies); these files are the databases that hold all the auto-complete intellisense data. Once you have done that restart Visual studio with the project you are working on. Do not use it, as you allow VS to rebuild the database. It will show in a message at the bottom of the program that intellisense is being built, if you do anything, even edit code, you could easily corrupt it again. When that process is complete, intellisense should be okay to use. I found it can be flaky for large projects especially with VS2008, but it works way better for VS2010. As you are using VS2010, I guess you have enabled Intellisense; so remember what to do if it starts breaking down again.

Share this post


Link to post
Share on other sites
As said above Intellisense performs quite bad when using C++, especially if your solutions/projects grow larger. At my workplace we reached the point, where the "Go to Definition" etc commands either took minutes to reslove (and that often wrong) or just completely stopped working.

As Kunos said the solution is to use the Visual Assist X Plugin from http://www.wholetomato.com/ It's not free, but IMO the 50$ you spend for a personal or academic license is well worth spending.

Share this post


Link to post
Share on other sites
You can't use VAX with the Express edition. Visual Studio only gives you plug-in support with the paid versions.

If you're in school, you might be able to get a copy of the full version of Visual Studio for free through MSDNAA or Dreamspark. But otherwise it's rather expensive.

Share this post


Link to post
Share on other sites
I second using Visual Assist X. Its amazing and brings a lot to the table. Only downside is you have to have a Pro version of Visual Studio which is expensive.

Share this post


Link to post
Share on other sites
[color=#1C2837][size=2]I'm not sure if this works with Express, but it does in Pro. Look under the Project menu or Right click on the project name under the Solution Explorer. Choose Rescan Solution. This will cause Intellisence to go over everything. This usually is enough to kick start it if it stops working.

[color=#1C2837][size=2]

[color=#1C2837][size=2]Since they added this to VC 2010, this has managed to fix any problems I've been having. I haven't needed to go back and delete the ncb's like in 2005 or 2008.

Share this post


Link to post
Share on other sites

[color="#1c2837"] [color="#1c2837"]Since they added this to VC 2010, this has managed to fix any problems I've been having.


Yeah rescan usually fixes any of my intellesence problems

Share this post


Link to post
Share on other sites
Visual Assist X does not work with Express editions.

But one thing I noticed, Visual Studio 2010 intellisense is a lot better that the previous versions even in the Express editions. I use it myself and never felt a big need to start using VAX.

[At work, I use VAX with Visual Studio 2008.]

Share this post


Link to post
Share on other sites
Visual Studio 11 has much better intellisense as well as coloring. It's developer preview version therefore it's free. However bigger projects might crash intellisense and you'll have none at all (got this problem, forced to use VS10).

Share this post


Link to post
Share on other sites
Visual Studio 11 has much better intellisense as well as coloring. It's developer preview version therefore it's free. However bigger projects might crash intellisense and you'll have none at all (got this problem, forced to use VS10).

Yup they have a good explanation here of why intellisense for C++ is so buggy. With projects becoming more complex, additional issues emerged such as the one known as the “multi-mod” problem.
C++/CLI IntelliSense in Visual Studio vNext


But yeah having used VB/C# intellisense not to mention the excellent intellisense in Apple's Xcode, intellisense for C++ in VS is pretty crappy if you can even get it.
Also, they used to have cool code snippets for C++ but I guess that was also too buggy that they took it out angry.png

Share this post


Link to post
Share on other sites

Also, they used to have cool code snippets for C++ but I guess that was also too buggy that they took it out


Really, they did ? I did not know about that. Which version had that ?

Share this post


Link to post
Share on other sites

[quote name='daviangel' timestamp='1327294185' post='4905331']
Also, they used to have cool code snippets for C++ but I guess that was also too buggy that they took it out


Really, they did ? I did not know about that. Which version had that ?
[/quote]
Visual C++ Code Snippets:The Visual C++ Code Snippets tool lets you insert snippets in your code by using a pop-up menu that contains programming keywords. VB.NET and C# languages have this functionality in Visual Studio 2005.


http://www.microsoft.com/download/en/details.aspx?id=15980

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement