IDEs integrate with Bazel in a variety of ways, from features that allow Bazel executions from within the IDE, to awareness of Bazel structures such as syntax highlighting of the BUILD files.
If you are interested in developing an editor or IDE plugin for Bazel, please join the #ide
channel on the Bazel Slack or email bazel-dev@googlegroups.com.
Official plugin for IntelliJ, Android Studio, and CLion. The plugin is open source.
This is the open source version of the plugin used internally at Google.
Features:
To install, go to the IDE's plugin browser and search for Bazel
.
To manually install older versions, download the zip files from JetBrains' Plugin Repository and install the zip file from the IDE's plugin browser:
Tulsi and XCHammer generate Xcode projects from Bazel BUILD
files.
Official plugin for VS Code.
Features:
Find the plugin on the Visual Studio marketplace. The plugin is open source.
Find the language-bazel
package on the Atom package manager.
See bazelbuild/vim-bazel
on GitHub
See bazelbuild/bazel-emacs-mode
on GitHub
Lavender is an experimental project for generating Visual Studio projects that use Bazel for building.
Bazel Eclipse Feature is a set of plugins for importing Bazel packages into an Eclipse workspace as Eclipse projects.
Bazel watcher is a tool for building Bazel targets when source files change.
Read the IDE support blog post to learn more about the Bazel APIs to use when building an IDE plugin.