This page covers how to integrate Bazel with IDEs, such as IntelliJ, AndroidStudio, and CLion (or build your own IDE plugin). It also includes links toinstallation and plugin details.
IDEs integrate with Bazel in a variety of ways, from features that allow Bazelexecutions from within the IDE, to awareness of Bazel structures such as syntaxhighlighting of the BUILD files.
It would be super useful if the copyright plugin ( ) could be made to work with C/C files in CLion. Follow the steps described at Develop plugins for CLion. Open the project and click Debug Plugin. This will start CLion with the plugin installed.
If you are interested in developing an editor or IDE plugin for Bazel, pleasejoin the
#ide channel on the Bazel Slack or emailthe bazel-dev mailing list.
IDEs and editors
IntelliJ, Android Studio and CLion
Official plugin for IntelliJ, Android Studio, andCLion. The plugin is open source.
This is the open source version of the plugin used internally at Google.
- Interop with language-specific plugins. Supported languages include Java,Scala, and Python.
- Import BUILD files into the IDE with semantic awareness of Bazel targets.
- Make your IDE aware of Starlark, the language used for Bazel’s BUILD and bzlfiles
- Build, test, and execute binaries directly from the IDE
- Create configurations for debugging and running binaries.
To install, go to the IDE’s plugin browser and search for
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 andXCHammer generate Xcode projects fromBazel
Visual Studio Code
Official plugin for VS Code.
Clion Plugins Download
- Bazel Build Targets tree
- Starlark debugger for .bzl files during a build (set breakpoints, step throughcode, inspect variables, and so on)
Find the plugin on the Visual Studiomarketplace.The plugin is open source.
language-bazel package onthe Atom package manager.
bazelbuild/vim-bazel on GitHub
Lavender is an experimental project forgenerating Visual Studio projects that use Bazel for building.
Clion Plugin Location
Bazel Eclipse Feature is a set of plugins for importing Bazel packages into an Eclipse workspace as Eclipse projects.
Clion Plugin Development
Automatically run build and test on file change
Platformio Clion Plugin
Bazel watcher is a tool forbuilding Bazel targets when source files change.
Building your own IDE plugin
Read the IDE support blogpost to learn more aboutthe Bazel APIs to use when building an IDE plugin.