About
How to configure the environment of development.
Articles Related
Steps
Create a new project and configure the Plugin Sdk
- download the Idea Community edition and install it. The Intellij Platform Sdk is located within the Community edition.
Debugging the core code will only work with the Community Edition because the Ultimate version is closed source. You can use Ultimate to develop the plugin and debug and test the plugin with the Community version.
- Create a new IntelliJ Platform Plugin project.
- Select the project type: IntelliJ Platform Plugin.
- The project SDK is empty, click the new button and select the home directory of the Idea Community edition, just installed
- Intellij asks you to select the Java SDK, select one and click Ok
- You got the IntelliJ Platform Plugin configured.
Configure the Plugin SDK source path
- Checkout the source code. In my case, I checkout only the branch 143 which corresponds to the version 15.6. See Check Out And Build Community Edition for all branch version
:: Create a directory
mkdir d:\git_idea_community
:: Go in it
cd /D d:\git_idea_community
:: Clone the source code
:: git clone --depth 1 <url> --branch <branch> --single-branch <folder>
git clone --depth 1 git://git.jetbrains.org/idea/community.git -b 143 --single-branch .
where:
- –depth. Create a shallow clone with a history truncated to the specified number of revisions. The repository is otherwise really 1.73 GiB !
- –depth 1 retrieve only the data from the last commit. Note to backfill history: “git pull –unshallow”. See documentation
Cloning into '.'...
remote: Counting objects: 90889, done.
remote: Compressing objects: 100% (71743/71743), done.
remote: Total 90889 (delta 21641), reused 58084 (delta 10632)
Receiving objects: 100% (90889/90889), 351.85 MiB | 1.35 MiB/s, done.
Resolving deltas: 100% (21641/21641), done.
Checking connectivity... done.
Checking out files: 100% (78493/78493), done.
- Configure in the SDK section of the Project Structure
Verify (Plugin Configuration in module)
All plugin configuration are now in a module.
To continue
- antlr/jetbrains-plugin-sample: demo plugin of antlr/jetbrains in order to use Antlr as Parser lexer inside Intellij from Using ANTLR (v4) to lex/parse custom file formats. See also: https://github.com/antlr/intellij-plugin-v4
- https://eclipse.org/Xtext/documentation/index.html … Xtext ? In the background it uses the LL(*) parser generator of ANTLR, allowing to cover a wide range of syntaxes.