DVT IDE for VS Code SystemVerilog User Guide
Rev. 22.1.36, 22 November 2022

28.1 Inactive Code Highlight

DVT editor marks the inactive code (i.e. code that is not compiled due to ifdef/ifndef) with a colored background.

You can enable or disable the highlight using the DVT.textEditor.systemVerilog.codeHighlighting.inactiveCode setting accessible using "Preferences: Open Settings (UI)" command.