Expand Macro

You can easily expand macro calls in the current file.

Place the editor cursor on a macro call, press Ctrl+1, select Expand macro from the list of quick assist proposals and press Enter.

../../_images/sv_quick_assist_expand_macro_list.png

The macro call is immediately expanded.

../../_images/sv_quick_assist_expand_macro_after.png

Note

By default, the expansion is done all levels inline. You can customize these settings by going to Window ‣ Preferences ‣ DVT ‣ SystemVerilog ‣ Refactoring and selecting the desired level and place of expansion.

../../_images/sv_quick_assist_expand_macro_preference_page.png

Tip

You can also click on the link in the proposal’s tooltip and go directly to the preference page for customizing the expansion parameters.

../../_images/sv_quick_assist_expand_macro_tooltip.png