Chapter 2. Getting Familiar with Anjuta

2.1. Menus and shortcuts

At the top of the Anjuta main window is the menubar. Almost all of the functions are available by activating the appropriate menu item. The functions have been grouped according to their type. For example, the file operations have been grouped into the File menu.

Figure 2-1. Menubar

Most of the menus and submenus can be detached. Click on the detach bar (the dashed line just above the first menu item). Once the menu is detached, it will become an independent window.

Figure 2-2. File menu

Shortcut keys are available for many of the menu options. All of the shortcut keys are shown alongside the corresponding menu items. A useful reference to the shortcut keys which are not directly attachted with the menu is also available in the next section. Some useful shortcuts are listed here.

  • Switch Editor page: CTRL-TAB (forward) and CTRL-SHIFT-TAB (backward) -- The pages could also be switched by right clicking on the notebook tabs and selecting an editor tab (useful when all the tabs in the editor are not visible at once). Some desktop configuration may already have these shortcut keys assigned. In that case, you will need to reconfigure them (not in anjuta, because they are fixed) if you want to avail these shortcuts.

  • Context Help: SHIFT-F1 -- Keep the cursor on the word (for example, the function name) for which you want to get the API help and press the shortcut. Context help only works if you have DevHelp installed. If you do not have DevHelp installed, the context help menu and toolbar button will be inactive. You can get it from DevHelp website. You will also have to install the related DevHelp books.

  • Auto complete: CTRL-ENTER -- Press the shortcut with the cursor placed at the end of incomplete word and a list of words matching the remaining part will appear. Scroll and select the right word from the list if you find one.

  • More shortcus: Look for the shortcut keys displayed on right side of the menu item labels. They could also be changed as explained in the tip below.

TipCustomize shortcuts
 

You can change the default shortcuts by using Settings->Customize shortcuts.