.. _Update Entity Instance:

Update Entity Instance
======================

Problems are reported when an entity instance does not match the entity definition (has missing or extra port connections).

Place the editor cursor on a problem's line and press :kbd:`Ctrl+1`, select :guilabel:`Update instance to match entity definition` from the list of quick fix proposals and press :kbd:`Enter`.

.. figure:: ../../images/common/vhdl_quick_fix_update_entity_instance_list.png
	:align: center

The extra ports are removed and all the missing ports are added at the end of the instance port list.

.. figure:: ../../images/common/vhdl_quick_fix_update_entity_instance_after.png
	:align: center

.. tip::

	You may change the newly added port connections. Press :kbd:`Tab` key to switch between the edit boxes, and :kbd:`Enter` when done.

.. note::

	The quick fix only works for named port connections.
