.. _Add New Port to Entity:

Add New Port to Entity
======================

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

In the **Add port wizard** you can tune the name, direction, type, and width of the new port.

.. figure:: ../../images/vhdl_refactor_add_port_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_port_task_view.png
	:align: center




.. note::

	An empty port connection 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.

