Sign in to follow this  

Visual Studio Code Definition window problem!

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

Hi There Iam using Visual Studio 2008 professional sp1 on a C++ project and I noticed that some times the code definition window was showing correct results and others it would show nothing at all, looking harder it seems it just doesnt work when you click say a class name in a .cpp file that isnt in the main project directory. The class browser etc all work fine and if I right click the same class in the Class browser and goto the definition the window shows the correct result but no go for normal clicking in the source window. Do I have something set wrong? Is this a known issue? Does anyone else have the same problem or is it unique to my install? Many thanks Chris

Share this post


Link to post
Share on other sites
Quote:
Original post by spookycat
...it seems it just doesnt work when you click say a class name in a .cpp file that isnt in the main project directory.


If the file isn't in the project, Intellisense won't scan it. However, it should scan anything that is in your Project, whether it's in the main folder or a subfolder.

In large projects, Intellisense will take a minute or two to scan all of your CPP and header files whenever you first start Visual Studio.

If you're using the "Makefile" project type, then you need to go into the project settings, NMake, and add some #include search paths for the intellisense scanner.

Share this post


Link to post
Share on other sites
Thankyou for your thoughts. Everything has been added to the project, intellisense is up to date as it does all the other things intellisense does, ie member suggestion and all that, it purely is anything that is in a subdirectory will not show up in the Code Definition window.

Does anyone else see this or is it just my box.

Share this post


Link to post
Share on other sites

This topic is 3340 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this