DVT IDE for VS Code SystemVerilog User Guide
Rev. 24.1.9, 26 April 2024

29.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.highlight.enableInactiveCodeHighlight setting accessible using "Preferences: Open Settings (UI)" command. Furthermore, you can change the color of the highlight using the DVT.textEditor.systemVerilog.highlight.lightThemeColor and DVT.textEditor.systemVerilog.highlight.darkThemeColor preferences.