To run or debug your plugin, you should create the corresponding Run/Debug configuration first.

To create a Run/Debug configuration for a plugin
  1. On the main menu, choose Run | Edit Configurations.
  2. In the Run/Debug Configuration dialog, click add, or press ⇧⌫ or ⇧⌫⇧⌫ or ⇧⌫InsertInsert, and select Plugin.
  3. Specify the settings as necessary and click OK.
To run or debug a plugin

Depending on whether you are going to run or debug your plugin:

  • To run the plugin, select Run | Run from the main menu, or press ⌃R or ⌃R⇧F10 or ⇧F10⇧⌘F11 or ⇧⌘F11^ F5, ⌃F5 or ⌃F5⇧ F10, ⇧F10 or ⇧F10.
  • To debug the plugin, select Run | Debug from the main menu, or press ⌃D or ⌃D⇧F9 or ⇧F9⌘F11 or ⌘F11⌥ F5, ⌥F5 or ⌥F5⇧ F9, ⇧F9 or ⇧F9.

As a result, IntelliJ IDEA will start an instance of itself. This will be the instance in which your plugin will be available.

See Also

Reference:

Concepts: