Configuring IntelliJ Platform Plugin SDK
To configure the IntelliJ Platform Plugin SDK
Now, the IntelliJ Platform Plugin SDK is in the list of available SDKs, so in the future, when necessary, you will be able to simply select it from the corresponding lists.
Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S).
Under Platform Settings, select SDKs and then click to define a new SDK.
Select IntelliJ Platform Plugin SDK from the Add New SDK list.
If you haven't defined a JDK in IntelliJ IDEA yet, a dialog is shown suggesting that you do that now. Click OK in that dialog, and then select the installation folder of the desired JDK in the dialog that opens.
In the dialog that opens, select the installation folder of the necessary IntelliJ IDEA version. (An IntelliJ IDEA installation acts as an IntelliJ Platform Plugin SDK).
In the Select internal Java platform dialog, select the desired JDK from the list and click OK. (Listed in this dialog are the JDKs defined in IntelliJ IDEA.)
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 . 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.