Greyed out code like vscode according to macros

For example:

In vscode:In Xcode:

This issue is also discussed in How to hide code based on macro definition?

Greyed out code like vscode according to macros
 
 
Q