Anjuta Manual version 0.1

Copyright (c) Kh. Naba Kumar Singh

Contents Index Shortcuts
PREV: Editing files UP: File Operations NEXT: Searching and replacing text in files

Browsing with tags:

All C and C++ source and header files can be browsed using the tags in the files. All the currently opened C and C++ source and header files are scanned for the available tags (Tags are nothing but the function definitions, structures, defines etc). Select the type of the tag you want to view in the tag pull down menu in the browser toolbar. If the tag type is function or class, you will have to further select the file for which you want to view the tag. Then select the tag (function, class member or the other tags) from the tag combo box. Then the editor will take you to that perticular file and line and hilite the line that contains the tag.

Following tags are recorded:

File mode operation:

If there is no project opened, then Anjuta is in File mode. In this mode, Anjuta keeps account of the opened file(s) only. Anjuta will know all the tags availabe in these opened file(s).

Project mode operation:

If there is a project opened, then instead of scanning for tags only in the currently opened files, anjuta will scan all the source and header files of the project. This way it is possible to go to any function definition, structure definition, class definition etc. without even opening the file. You don't even have to know in which file that tag is located (execpt in function definitions).

Moreover, you don't have to worry about the synchronization and update of the tag database. Anjuta will take care of everything. You just have to tell where you want to go, and loo... you are there.

Goto line number:

You can also go to a perticular line number in the current document. Enter the line number in the line number entry box in the main toolbar and pressing Enter. Or activate the menu item Edit/Goto Line no..., enter the line number and click Ok.

Life can't be more simpler than this :).

Things to note:

You should have installed ctags to use this facility. Read the man page for ctags for detailed information.

The tags image recorded is with accordance to the files in the disk and not with the buffers anjuta manages for these files. Hence, to keep the tags image up to date, the files should be saved regularly. [ you can enable auto save with small timer interval ].