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:

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.

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

Related References