mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 17:27:49 +08:00
53 lines
2.3 KiB
Markdown
53 lines
2.3 KiB
Markdown
---
|
|
title: Setting Up a Development Environment
|
|
---
|
|
|
|
### Preliminary Steps
|
|
|
|
Use the following check list to ensure that you are ready to develop your custom plugins.
|
|
|
|
- **IntelliJ IDEA** version 9.0 or later (either Community Edition or Ultimate) must be installed on your computer.
|
|
- **IntelliJ IDEA CE source code** should be checked out to your local computer. This is not a requirement but will make it much easier for you to debug your plugins. For detailed instructions, refer to [Check Out And Build Community Edition](/basics/checkout_and_build_community.md).
|
|
- **Plugin DevKit** plugin must be enabled in IDE
|
|
- **IntelliJ Platform SDK** must be configured for your IDEA project. For more information, see [Configuring IntelliJ Platform SDK](#configuring-intellij-platform-sdk) below.
|
|
|
|
### Configuring IntelliJ Platform SDK
|
|
|
|
To set up your plugin development environment:
|
|
|
|
* Check out the source code of IntelliJ IDEA Community Edition as described in
|
|
[Check Out And Build Community Edition](/basics/checkout_and_build_community.md).
|
|
|
|
* Create a new *IntelliJ Platform SDK* under **File \| Project Structure**:
|
|
|
|

|
|
|
|
* Specify the installation folder of *IntelliJ IDEA Community Edition* as the home directory.
|
|
|
|

|
|
|
|
* Select the **IDEA jdk** created in [Check Out And Build Community Edition](/basics/checkout_and_build_community.md) as the default Java SDK:
|
|
|
|

|
|
|
|
|
|
> **warning** You may use IntelliJ IDEA Ultimate as an alternative, but debugging the core code will only work with the *Community Edition*.
|
|
|
|
* In the Sourcepath tab of the SDK settings, click the *Add* button:
|
|
|
|

|
|
|
|
* Specify the directory into which you have checked out the sources of the *Community Edition*:
|
|
|
|

|
|
|
|
* Select **File \| New \| Module** and choose the *IntelliJ Platform Plugin* module type
|
|
|
|

|
|
|
|
* Enter your desired plugin name.
|
|
|
|
* Go to **File \| Project Structure** and select the newly created *IntelliJ Platform SDK* as the default SDK for the plugin module:
|
|
|
|

|