Visual Studio can jump to the symbol definition when press F12 over a symbol. Can I modify this behavior so the symbol resolving can be customized? For example, can we reference some other rule files to resolve the symbol.
I want to do this because my project has some special linking rules which decides which symbols get linked. But Visual Studio cannot follow such rule files by default.
For example, I have 4 C projects in a solution:
- project 1: defines
functionX()
. - project 2: also defines a
functionX()
with the same name and signature. But the implentation is different. - project 3: invokes
functionX()
but its rule file mandates that the linked implementation comes from project 1. - project 4: also invokes
functionX()
but its rule file mandates that the linked implementation comes from project 2.
Currently, when I press F12 on functionX()
in project 3/4, Visual Studio just lets me choose between implentations from project 1/2. I want to avoid this tedious manual selection by bringing in the rule files as a reference.
Is such customization possible?