how to expand VC++ macro references using Visual Studio?

J Smith picture J Smith · Nov 10, 2013 · Viewed 13.2k times · Source

Rather than right clicking on the macro identifier and then on "go to definition", is it possible to expand macro references and see what the code that is passed to the compiler looks like?

Answer

J Smith picture J Smith · Nov 17, 2013

"Project + Properties, C/C++, Preprocessor, Preprocess to a File = Yes. Compile and open the .i file in the build directory.