Jump to content
  • Advertisement
Sign in to follow this  
belgreth

Visual Studio having trouble knowing when I add new class members/methods?

This topic is 2684 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

Not really sure how to explain this. My program is slowly increasing in size, with # of classes I use and such and now, whenever I add a public member or method to a class and I try to, er, reference or use said member/method, Visual Studio no longer knows anything new is added. It'll compile fine but that popup menu that shows up when you do the . doesn't list the newest additions. Until I compile, it'll show it as an error. I have to close the solution and reopen it before Visual Studio (2010 express) will see the new stuff. Anyone know what's going on? I don't recall having this issue with my normal version of VS 2008. Is this a limitation of the express version of 2010 one? Thanks guys.

EDIT: After searching around it looks like my Intellisense isn't working right. It'll work fine on other projects but my current project, it won't update the definitions whenever I add/remove stuff, like class methods/members. Still haven't found a solution yet. Any ideas?

Share this post


Link to post
Share on other sites
Advertisement
I'm guessing this is C++? C++ intellisense on VS is notoriously flakey once the project reaches a certain size. There are plenty of workarounds (rebuiliding, deleting the intellisense database and so on) but most people find the best answer is to use Visual Assist. It's not free, but IMHO it's well worth the asking price.

Share this post


Link to post
Share on other sites
Thanks for the tip Chaos. I'm using C# but I have never heard of Visual Assist. Lookin at it, it does look very useful.

Share this post


Link to post
Share on other sites

Thanks for the tip Chaos. I'm using C# but I have never heard of Visual Assist. Lookin at it, it does look very useful.


Hmm that's odd. It's usually pretty good with C#. Visual Assist is still a good product but I normally don't bother with it in C# projects. How big is your program? I'm currently working on a solution with abour 2500 c# classes and 1400 c++ classes and the intellisense hasn't broken yet.

Share this post


Link to post
Share on other sites
Hi,

I'm not sure if this is true for C#, but in C++ it helps to occasionally delete the project's Intellisense file (it's something like MyProject.ncb). Do this before you launch Visual Studio. When you do launch Visual Studio it, may take a bit for Intellisense to repopulate, but afterwards it should work much better.

Hope that helps.

Share this post


Link to post
Share on other sites
In my experience (I use VC 2008 Express), the code intelligence (aka, auto complete) is not good in VC.
When I type ".", "->" or "::", I usually don't expect any auto complete list pop up. :(

I found Code::Blocks has better code intelligence than VC.
So if it's suitable and if I want my code compatible with GCC, I setup a mirror project in C::B with GCC.
And then if I need a lot of code intelligence, I switch to C::B.
But my primary IDE is still VC.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!