5.5. Visiting Declaration and Body FilesΒΆ

In addition to navigating and browsing by selecting individual entities in a source file, you can also navigate back and forth in terms of the files themselves, without first selecting the entity name. To do so, simply place the cursor anywhere within the file containing the declaration or body and invoke “Goto File Spec / Body”, in either the Ada menubar entry or the Ada menu in the editor contextual menu. The file containing the corresponding declaration or body will open.

In the following figure the cursor is in the file but is past the end of the package when the contextual menu is invoked. The corresponding body file will be opened as a result of the invocation.

goto file spec / body example