.. role:: ada(code)
   :language: ada

=================
Code Navigation
=================

---------------------------------------
Finding Declaration or Implementation
---------------------------------------

1. In :filename:`main.adb` right-click on :ada:`Time_Step`

   .. image:: gnat_studio/quickstart/navigation-declaration.jpg

2. To examine the code for :ada:`Time_Step` you can:

   * Click :menu:`Go To Declaration` to look at the specification
   * Click :menu:`Go To Body or Full Declaration` to look at the implementation

--------------------
Finding References
--------------------

.. columns::

   .. column::

      1. In :filename:`main.adb` right-click on :ada:`Time_Step`

         .. image:: gnat_studio/quickstart/navigation-references.jpg

   .. column::

      2. Select :menu:`Find All References` to see a listing of all uses for the object

         .. image:: gnat_studio/quickstart/navigation-reference_result.jpg
