Installing Git
The source code of IntelliJ IDEA Community Edition is stored in a Git repository. Therefore, in order to check out the sources, you need to have Git installed. We recommend using the msys git distribution on Windows and git-osx-installer on Mac.
Checking Out the Code
You can check out the code either by using IntelliJ IDEA or from the command line.
Checking out from IntelliJ IDEA:
- Select VCS | Checkout from Version Control | Git from the main menu
- In the Git Repository URL field, enter
git://git.jetbrains.org/idea/community.git
Checking out from the command line:
Please execute the following command:
git clone --depth 1 git://git.jetbrains.org/idea/community.git idea
The master branch currently contains the code for the most recent development version of IntelliJ IDEA. Source code of older releases of IntelliJ IDEA can be found in the following branches (see Build Number Ranges for more details on branch and build numbers):
IntelliJ Product version | Branch name/number |
---|---|
2017.1 | 171 |
2016.3 | 163 |
2016.2 | 162 |
2016.1 | 145 |
15.0.x | 143 |
14.1.x | 141 |
14.0.x | 139 |
13.1.x | 135 |
13.0.x | 133 |
12.0.x | 123 |
11.1.x | 117 |
11.0.x | nika |
10.5.x | xena |
10.0.x | x0x |
9.x | maia |
The source code of stable releases of IntelliJ IDEA Community Edition is also available as a tarball:
- IntelliJ IDEA Community Edition 2017.1
- IntelliJ IDEA Community Edition 2016.1.4
- IntelliJ IDEA Community Edition 15.0.6
- IntelliJ IDEA Community Edition 14.1.7
- IntelliJ IDEA Community Edition 13.1.7
- IntelliJ IDEA Community Edition 13.0.5
- IntelliJ IDEA Community Edition 12.1.8
- IntelliJ IDEA Community Edition 12.0.4
- IntelliJ IDEA Community Edition 11.0.2
- IntelliJ IDEA Community Edition 10.5.4
- IntelliJ IDEA Community Edition 10.0.3
- IntelliJ IDEA Community Edition 9.0.4
Forking on GitHub
As an alternative to checking out the official repository, you can fork the GitHub mirror of the IntelliJ Platform source code, make changes in your own fork, and send us a pull request.
The GitHub mirror can be found at https://github.com/JetBrains/intellij-community.
Building and Running from the IDE
To develop plugins and applications on the IntelliJ Platform, you can use either IntelliJ IDEA Community Edition or IntelliJ IDEA Ultimate. Note that this requires 15.0 or later.
Building and running the code
- Run
getPlugins.sh
/getPlugins.bat
from the project root directory to check out additional modules. - If this git repository is not on
master
branch you need to checkout the same branches/tags inandroid
andandroid/tools-base
git repositories. - Open the project.
- If an error notification about a missing required plugin (e.g. Kotlin) is shown enable or install that plugin.
Configure a JSDK named "IDEA jdk" (case sensitive), pointing to an installation of JDK 1.8.
Unless you're running on a Mac with an Apple JDK, add
/lib/tools.jar
to the set of "IDEA jdk" jars.Configure a JSDK named "1.8", pointing to an installation of JDK 1.8.
- Add
/lib/tools.jar
to the set of "1.8" jars. - Use Build | Make Project to build the code.
To run the code, use the provided shared run configuration "IDEA".
Building and Running from the Command Line
To build the distribution archive of IntelliJ IDEA Community Edition, execute the build.xml Ant build script in the root directory of the source code.
The results of the build execution can be found at out/artifacts.