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?
Visual Studio having trouble knowing when I add new class members/methods?
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.
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.
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.
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.
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.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement