In VS 2022 (C++), how do I tell Intellisense where to find external library sources?

  Kiến thức lập trình

Very basic question, sorry. But I did search before posting it! 🙂

I tried the following:

Project Properties -> VC++ Directories -> Set “Source Directories” to:

$(VC_SourcePath);C:UserslogixDesktopcode_libsmisccinder_0.9.2srccinder;$(SourcePath)

But still, when I F12 (“Go to definition”) on a libcinder method called in my code, I get the relevant header, not the relevant libcinder cpp file.

ChatGPT advised me to include the entire libcinder source tree (via the “Add existing” menu option) into my project. But that would mean my .vcxproj file would be cluttered with several thousand additional files. I’d like to avoid that for the following reasons:

  • VS’s speed and memory usage would probably be impacted quite a bit.
  • I’m pretty sure this scenario used to “just work” when I tried it about 10 years ago. So I feel like I’m missing some much cleaner/simpler solution here.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT