I've imported a folder with many *.c and *.h files into VSC (also many subfolders). When I try to find all references to a global variable / function or anything else I get an empty results window. Is there a configuration that I need to perform in order to make find all references work? Do you I need to build the project differently (I've simply opened the folder with source files into VSC)?



In summary, you need to install the Microsoft C/C++ Extension and GNU Global and run gtags on your workspace folder. You can see a more detailed answer for the steps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.