This guide provides instructions for setting up and developing our Bazel plugin for JetBrains IDEA.
Follow these steps to get your development environment ready.
git clone https://github.com/JetBrains/hirschgarten.git- Checkout the 262 branch
- Run
bazel build //:plugin-bazel_zipand then grab the built plugin atout/bazel-bin/plugin-bazel.zip.
-
Install IntelliJ IDEA 2026.2 or later version.
-
Install the Bazel plugin.
-
Install the Plugin DevKit plugin.
-
Open the cloned
hirschgarten/MODULE.bazelfile in IDEA. Click "Open as Project" and wait for it to import. -
Open "File→Project Structure". This opens the Project Structure dialog.
Click "SDKs". -
Hit the "+" button. Click "Download JDK".
Install JetBrains Runtime version 25.
-
Hit the "+" button.
Click "Add IntelliJ Platform Plugin SDK from disk".
A file exporer with the 'Contents' folder will open.
Click "Open" in this window.

-
A "Select Internal Java Platform" dialog will open.
Selectjbr-25in the dropdown list and click "OK".
Then click "OK" again.
-
In the target view (open it via the Bazel icon on the right), find
plugin-bazel_debug, right-click it and clickRunin the context menu.
-
The following plugin runs can be started by clicking "Run" button in the upper right corner, next to the now present run configuration.
-
To avoid IDEA showing red code for
BuildEventStreamProtosclass, click Help->Edit Custom Properties... and add the following line:idea.max.intellisense.filesize=10000
Open the project in IDEA as the previous section shows. Then click a gutter icon:
- To run all plugin tests, open
pluginTests/BUILDand click the icon next to thepluginTests_testtarget. - To run one test class or one test method, open the test file and click the icon next to the class or the method.
After completing these steps, your development environment should be ready for plugin development. If you encounter any issues not covered here, please reach out to the team.