Andrew Neely
Andrew Neely

Reputation: 908

Visual Studio 2008 Navigation Bar Confused

I am refactoring a (rather long) C program using Visual Studio Professional 2008 (9.0.30729.4462 QFE). I use function picker drop-down in the navigation bar to jump between functions in the source quickly.

I added a function to the top of some source code and now the function picker drop-down in the navigation bar is just wrong. It sometimes jumps me to a different function, or inside another function.

I've tried cleaning, building, rebuilding the project, closing and reopening the project and even rebooting my computer, and nothing fixes this.

My supposition is that the IDE needs to rebuild its source code index, but I've been searching to no avail to location such a file much less how to force a rebuild.

Thanks!

Upvotes: 1

Views: 276

Answers (1)

Yakov Galka
Yakov Galka

Reputation: 72469

Deleting the .ncb file and reopening the solution should fix the problem.

Visual studio parses your source code and stores the results inside the .ncb (Intellisense database). The file is used for auto-completion, class-view browser, etc... It usually rebuilds automatically, but sometimes it needs a manual clean.

Upvotes: 2

Related Questions