Jump to content
  • Advertisement
Sign in to follow this  
spookycat

Visual Studio Code Definition window problem!

This topic is 3560 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
Advertisement
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
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!