Check Out & Build Community Edition
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
Checking Out the Code
You can check out the code either by using IntelliJ IDEA or from the command line.
To check out from IntelliJ IDEA, select "Version Control | Checkout from Version Control | Git" from the main menu. In the "Git Repository URL" field, enter:
To check out from the command line, please use the following command:
git clone git://git.jetbrains.org/idea/community.git idea
Sources of Android plugin are located in separate Git repositories. Execute getPlugins.bat (getPlugins.sh for Linux/Mac) script from the root directory of the source code to fetch them.
If this git repository is not on 'master' branch you need to checkout the same branches/tags in android and android/tools-base git repositories.
The numbers of branches for products and their versions, both actual and old ones, can be found in SDK documentation.
You can also browse the source code through the Web interface.
Forking on GitHub
As an alternative to checking out the official repository, you can fork the GitHub mirror of the IntelliJ IDEA 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 IntelliJ IDEA, you can use either IntelliJ IDEA Community Edition or IntelliJ IDEA Ultimate not older than 15.0. To build and run the code:
- 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.6.
- 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 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.