.. _Import Type:

Import Type
===========

An error is triggered when accessing a type declared in a package which was not imported in the current scope.

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

Place the editor cursor on the error's line and press :kbd:`Ctrl+1`, select the :guilabel:`Add ... to import ...` from the list of quick fix proposals and press :kbd:`Enter`.

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


A **use** clause is added before the enclosing element (entity, package, etc.) of the type access.

.. note::

	When the missing type name is provided by multiple packages, all possible imports are proposed.

