## Context Menus

A context menu provides a shortcut to frequently used program commands. To invoke one simply right-click anywhere within a view or directly on a component (list item, icon, etc.). If a context menu is available for the selected item then its options are shown. The menu options available will differ based on the context of the selected item. For example, the Breakpoints view uses commands that differ from the Editor view.

Sample uses of the context menu for different tasks include:

- Editor views - perform editing functions, format, compare, and a host of other file actions
- Breakpoints view - enable, disable, remove, or select all breakpoints
- Debug view - restart, step into, over, or out of routines, terminate or suspend program execution
- Memory view - add or remove memory monitors
- Project Explorer view - manage projects, build, delete, freeze, run, debug, and other common project commands
- Variables view - enable, disable, find, and change the format or value of variables displayed
- and other views...

TIP Experiment using the context menu in various views to discover additional capabilities.

Figure 1 shows a sample context menu in the Breakpoints view.

Figure 1 - Example context menu in Breakpoints view

#### Using Context Menus

Use context menus to apply context-specific commands to selected items.

- Right-click or click and hold on an item to open a context menu

> The context menu appears, displaying menu commands applicable to the selected item or view.

##### Related References

- Menus