There are several easy to use commands to navigate through Ada code. All these functions are available through the Ada menu, and you can also use the following key bindings or the command names. Some of these menu entries are available only if the GNAT compiler is used, since the implementation relies on the GNAT cross-referencing information.
Move to the next function/procedure/task, which ever comes next
Move to previous function/procedure/task
Move to next package.
Move to previous package.
Move to matching start of
point is at the end of a subprogram, this command jumps to the
begin if the user option
nil (default), otherwise it jumps to
the subprogram declaration.
Move point to end of current block (
Switch between corresponding spec and body file
ff-find-other-file). If point is in a subprogram, position
point on the corresponding declaration or body in the other file.
Move from any reference to its declaration, for from a declaration to its body (for procedures, tasks, private and incomplete types).
Runs the gnatfind command to search for all references to the
identifier surrounding point (
C-x ` (
next-error) to visit each reference (as for
ada-xref-create-ali variable is non-
will try to run GNAT for you whenever cross-reference information is
needed, and is older than the current source file.