5.6. Traversing Within Source FilesΒΆ

You may visit the next or previous unit within an Ada source file using the “Goto Next Unit” and “Goto Previous Unit” commands. These commands will skip to the next/previous procedure, function, or entry in the file. Both declarations and bodies for these units in a given file will be visited.

By default these editor actions are bound to the Ctrl+Up_arrow and Ctrl+Down_arrow keys (for visiting the previous and next units, respectively). You may change these bindings if desired, as usual.

The commands are also available via the Ada menu on the menubar and the editor’s contextual menu.

If there is no next or previous unit, these actions have no effect.