DVT IDE for VS Code SystemVerilog User Guide
Rev. 23.1.12, 23 May 2023

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.