To be able to develop plugins for IntelliJ IDEA, you have to configure an IntelliJ IDEA Plugin SDK.
You can skip the following procedure and configure the IntelliJ IDEA Plugin SDK later, when creating a project.
- Open the Project Structure dialog (Ctrl+Alt+Shift+SCommand Semicolon).
- If you don't have a JSDK configured in IntelliJ IDEA, configure one now. Otherwise you won't be able to complete this procedure.
- Under Platform Settings, select SDKs and then click to add a new SDK.
Select IntelliJ IDEA Plugin SDK from the Add New SDK list.
- In the dialog that opens, select the IntelliJ IDEA installation folder and click OK.
- In the Select internal Java platform dialog, select the desired JSDK from the list and click OK. (The JDK version 1.6 is recommended.)
- If necessary, change the path to the sandbox in the Sandbox Home field. (The sandbox is a folder where IntelliJ IDEA will copy your plugins for debugging.)
- Optionally, configure the source path for the IntelliJ IDEA Community Edition sources (if you are going to use them and have them available on your computer). To do that, select the Sourcepath tab and click Add. In the dialog that opens, select the folder containing the sources and click OK. Click OK in the Detected Source Roots dialog.
- Click OK to save the changes and close the Project Structure dialog.
Now, the IntelliJ IDEA Plugin SDK is in the list of available SDKs, so in future, when necessary, you will be able to simply select it from the corresponding lists.