.. _Semantic Search:

Semantic Search
===============

.. rst-class:: lead

You can search for a specific type, method etc. in the current project or whole workspace. Press :kbd:`Ctrl+H` to pop-up the search dialog.

.. figure:: ../../images/vhdldt-search-dialog.png
	:align: center

To search for the declaration of a specific type, method, field etc. :

-  Press :kbd:`Ctrl+H` to open the Search Dialog
-  **Click** on the :guilabel:`VHDL Search` tab.
-  **Type** the name in the :guilabel:`Search String` (if you select in the editor before pressing :kbd:`Ctrl+H`, the Search String is automatically set to the selection).
-  Select :guilabel:`type` or :guilabel:`field` etc. and :guilabel:`Declarations`
-  Click :guilabel:`Search`.

To search for a whole word in all VHDL files, in comments or not:

-  Press :kbd:`Ctrl+H` to open the Search Dialog
-  **Click** on the :guilabel:`VHDL Search` tab.
-  **Type** the name in the :guilabel:`Search String` (if you select in the editor before pressing :kbd:`Ctrl+H`, the Search String is automatically set to the selection).
-  Select :guilabel:`Whole Word` and :guilabel:`Not in comments` or :guilabel:`All occurrences`
-  Click :guilabel:`Search`.

.. figure:: ../../images/vhdldt-search-view.png
	:align: center

The search results are presented in the :guilabel:`Search View`.

The Search View is automatically raised at any invocation. You can also go to menu :menuselection:`Window --> Show View --> Other... --> General --> Search` to open the Search View.

-  Use **up and down arrows** to move from one match to another.
-  Use **search history** to switch between various search results.
-  Use **search again** to refresh search results.

