JetBrains logo

Bazel for IntelliJ IDEA

by JetBrains

The Bazel team at JetBrains is working hard on delivering a new experience to working with Bazel in IntelliJ IDEA.

We're happy to announce a public EAP release!

It is expected to work for productive use for many JVM projects, and is tested against large code bases, but you may still run into issues with some project configurations. We rely on your feedback to find and fix broken use cases, as well as improving the general user experience.

Thank you for your interest in trying our new approach to supporting Bazel in IntelliJ IDEA!

Currently updated for IntelliJ IDEA 2024.3 EAP only

EAP features

Work with JVM projects productively.

Find a detailed description of features on the Features Overview document.

Build, run, test, debug

Build the whole project or individual targets with the build button. Run tests and apps through Bazel, view test output in the IDE. Debug code running through Bazel with a click. Edit run configurations to customize how code is run.

Language support

Currently Java and Kotlin are fully supported.

Scala, Go, and Python coming soon!

Target management

Browse Bazel targets in a tree and filter them by name. Build, run, and test targets through the context menu.

Install plugin

To install the EAP release, find the "Bazel by JetBrains (experimental)" plugin on the Marketplace, or install it directly from IntelliJ IDEA.

To get the latest releases, make sure you are using the 2024.3 release of IntelliJ.

Go to Marketplace tab.

Then look for "Bazel by JetBrains (experimental)" and click Install.

Restart IntelliJ IDEA. You're ready!