DVT IDE for VS Code SystemVerilog User Guide
Rev. 23.2.28, 28 November 2023
You can inspect the code generated by the expansion of a macro in two ways:
Place the cursor on a macro call in the editor and use one of the following expansion commands:
Expansion also works for an entire region of code, and all macros in the selection will be expanded.
Place the cursor on the expansion start pragma, and use the "DVT: Collapse Inline Macro Expansion"".
You can also expand or collapse a macro by using Code Lens, which can be enabled using the DVT.codeLens.expandCollapseMacros setting accessible using "Preferences: Open Settings (UI)" command.
Note: Do not modify the pragmas generated by DVT because this might break the collapse functionality!
The pragmas are: