So this happened after my project got to around 6-7k lines of codes, and for some reason go to definition goes to a wrong line for some of the functions. This only happens for old functions inside of a specific .c file.
So when I use an old function inside of that .c file and try to use F12, it goes to a wrong line/function, almost feels like its going to its old line number.
I'm using visual studio 2019, how can i fix this?
Deleting the .vs folder will fix this issue but it will delete some settings.
Recreating the database fixed the issue for me: Tools -> Options -> Text Editor -> C/C++ -> Advanced -> Recreate Database == True. Then restart Visual Studios.

Try this:
Works for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With