# Setting Up a Development Environment
Setting up a development environment required for developing a theme.
Use the following checklist to ensure that you are ready to develop your custom theme:
1. **[IntelliJ IDEA Community Edition](https://www.jetbrains.com/idea/download/)** or **[IntelliJ IDEA Ultimate](https://www.jetbrains.com/idea/download/)** is installed.
2. **Plugin DevKit** plugin is installed and [enabled in IntelliJ IDEA](https://www.jetbrains.com/help/idea/managing-plugins.html).
3. **IntelliJ IDEA CE source code** is checked-out. _(Optional)_
This step is needed only when you plan to debug the IntelliJ Platform code.
See [](#get-intellij-idea-ce-source-code) for more details.
4. **IntelliJ Platform SDK** is [configured](#configuring-intellij-platform-plugin-sdk).
## Get IntelliJ IDEA CE Source Code
Getting the IntelliJ IDEA CE source code is not a requirement for theme development as debugging the platform code while developing a theme is a rare situation.
In case you are developing a plugin extending IDE behavior, or you need to understand how some components work internally, having sources makes debugging much more straightforward.
For detailed instructions on how to check out the code efficiently, refer to the _Getting IntelliJ IDEA Community Edition Source Code_ section of [IntelliJ IDEA Community Edition README file](%gh-ic%/README.md).
Note that building the checked-out sources is not required in this case.
## Configuring IntelliJ Platform Plugin SDK
> For more information about SDKs, see [SDKs section](https://www.jetbrains.com/help/idea/working-with-sdks.html) in the IntelliJ IDEA Web Help.
### Download IntelliJ-Based IDE
To see the effects of the developed plugin in real IDE, it is required to run the plugin in an [](ide_development_instance.md).
In most cases, it is enough to download and use _[IntelliJ IDEA](https://www.jetbrains.com/idea/download/) Community Edition_.
If it is required to style components used only in a specific IDE like _IntelliJ IDEA Ultimate_ or _WebStorm_, they can also be used as SDK, but debugging the core code will only work with the _IntelliJ IDEA Community Edition_.
### Add JDK and IntelliJ Platform Plugin SDK
The first step of configuring a theme plugin SDK is adding the JDK.
1. Go to File | Project Structure | Platform Settings | SDKs.
2. Click the Add button (+).
3. If you have the required JDK installation on your machine, and it is detected, select it from the Detected SDKs list.
If your JDK is not detected, select the Add JDK... option and choose the installation folder.
If the required JDK is not installed on your machine, the simplest option is using Download JDK... and choosing the distribution options.
4. Click the Apply button.
The second step is adding IntelliJ Platform Plugin SDK that will use the JDK configured in the first step.
1. Go to File | Project Structure | Platform Settings | SDKs.
2. Click the Add button (+).
3. Select the Add IntelliJ Platform Plugin SDK... option.
4. Choose the installation folder of the IDE [downloaded previously](#download-intellij-based-ide) (on macOS, select application icon in /Applications/).
5. In the Select Internal Java Platform dialog, select the JDK configured in the [previous step](#add-jdk) and click OK button.
6. In the added SDK, specify the Sandbox Home directory.
See [](ide_development_instance.md#the-development-instance-sandbox-directory) for details.
7. If debugging is required, select the Sourcepath tab, click the Add button (+) and select the root folder of [the checked-out sources](#get-intellij-idea-ce-source-code).
8. Click the Apply button.