.. _Add New Generic to Entity:

Add New Generic to Entity
=========================

To add a new generic to an entity place the editor cursor on the entity name, **right-click** and select :menuselection:`Refactor --> Add generic`.

In the **Add generic wizard** you can tune the name, type, width and the default value of the new generic.

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




Click **Ok** to perform the refactoring or **Preview**  to see the changes that are about to be performed in the source code. 

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




.. note::

	An empty generic is added to all the instances of the selected entity along with a FIXME comment which shows up in the :ref:`Tasks View`. See :ref:`Track Tasks using TODO Markers`.

.. tip::

	In the Preview page you can select what changes should be performed.
