IntelliJ IDEA 13.1.0 Web Help

Project tool window | Context menu of the target package | New | Action
Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertCtrl+N or Alt+InsertAlt+InsertAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter


Use this dialog to create a new action with the specified identifier, and optionally bind it with a keyboard shortcut that can consist of one or two keystrokes.

Item Description
ActionId In this text field, type the identifier of the new action.
Class name In this text field, specify the name of the class where the new action will be defined. The created stub class contains import statements, and extends AnAction.
Name Specify the name that will identify the new action in the UI.
Add to Group In this section, select a group where the action will belong (Groups section), and specify its position (Anchor) relative to the other actions in this group (Actions).
Keyboard shortcuts In the two text fields below, specify the optional primary and secondary keyboard shortcuts, by pressing keyboard keys and their combinations.

Warning

If you opt to specify the keyboard shortcuts, it is important to use the mouse pointer for clearing the keyboard shortcuts text fields, applying changes and closing the dialog box, because any keystroke will be interpreted as a shortcut.

See Also

Procedures:

Web Resources: