I was having the same issue. The weird part is that it is hard to find official references to this “Macro in Skipped Region”. There are a lot of people complaining about this, links for reference:
- Green squiggles and light bulb with “Macro in skipped region” message.
- Generate Visual Studio Project Files does not find new classes
- Deactivate VS warning “Macro in skipped region"
The best solution comes from the later where it suggests disabling this warning by disabling IntelliSense as a whole. Unfortunately, I couldn’t find a way to disable only this warning but I can live with it until a fix comes out.
In order to fully disable IntelliSense:
-
Tools → Options → Text Editor → C/C++ → Advanced → Disable IntelliSense