Product SiteDocumentation Site

2.2. Useful Hints

Many Eclipse users learn useful tricks and troubleshooting techniques throughout their experience with the Eclipse user interface. This section highlights some of the more useful hints that users new to Eclipse may be interested in learning. The Tips and Tricks section of the Workbench User Guide contains a more extensive list of Eclipse tips.

2.2.1. The quick access menu

One of the most useful Eclipse tips is to use the quick access menu. Typing a word in the quick access menu will present a list of Views, Commands, Help files and other actions related to that word. To open this menu, press Ctrl+3.
Quick Access Menu
Figure 2.10. Quick Access Menu

In Figure 2.10, “Quick Access Menu”, clicking Views > Project Explorer will select the Project Explorer window. Clicking any item from the Commands, Menus, New, or Preferences categories to run the selected item. This is similar to navigating to or clicking the respective menu options or taskbar icons. You can also navigate through the quick access menu using the arrow keys.
It is also possible to view a complete list of all keyboard shortcut commands; to do so, press Shift+Ctrl+L.
Keyboard Shortcuts
Figure 2.11. Keyboard Shortcuts

To configure Eclipse keyboard shortcuts, press Shift+Ctrl+L again while the Keyboard Shortcuts list is open.
Configuring Keyboard Shortcuts
Figure 2.12. Configuring Keyboard Shortcuts

To customize the current perspective, navigate to Window > Customize Perspective. This will opens the Customize Perspective menu, allowing the visible tool bars, main menu itmes, command groups, and short cuts to be configured.
The location of each view within the workbench can be customized by clicking on a view's title and dragging it to a desired location.
Customize Perspective Menu
Figure 2.13. Customize Perspective Menu

Figure 2.13, “Customize Perspective Menu” displays the Tool Bar Visibility tab. As the name suggests, this tab allows you to toggle the visibility of the tool bars (Figure 2.14, “Toolbar”).
Toolbar
Figure 2.14. Toolbar

The following figures display the other tabs in the Customize Perspective Menu:
Menu Visibility Tab
Figure 2.15. Menu Visibility Tab

The Menu Visibility tab configures what functions are visible in each main menu item. For a brief overview of each main menu item, refer to Reference > C/C++ Menubar in the C/C++ Development User Guide or Reference > Menus and Actions in the Java Development User Guide.
Command Group Availability Tab
Figure 2.16. Command Group Availability Tab

Command groups add functions or options to the main menu or tool bar area. Use the Command Group Availability tab to add or remove a Command group. The Menubar details and Toolbar details fields display the functions or options added by the Command group to either Main Menu or Toolbar Area, respectively.
Shortcuts Tab
Figure 2.17. Shortcuts Tab

The Shortcuts tab configures what menu items are available under the following submenus:
  • File > New
  • Window > Open Perspective
  • Window > Show View