
Expand Macro
============

You can easily expand macro calls in the current file.

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

.. figure:: ../../images/sv_quick_assist_expand_macro_list.png
    :align: center

The macro call is immediately expanded.

.. figure:: ../../images/sv_quick_assist_expand_macro_after.png
    :align: center


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

.. figure:: ../../images/sv_quick_assist_expand_macro_preference_page.png
    :align: center

.. 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.

.. figure:: ../../images/sv_quick_assist_expand_macro_tooltip.png
    :align: center

