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.
When comparing CLion vs Visual Studio Code, the Slant community recommends Visual Studio Code for most people. CLion is ranked 3rd while Visual Studio Code is ranked 8th. The most important reason people chose CLion is. But it's just over complex to add 3rd party libraries etc. Netbeans/Eclipse etc are much better integrated with the. Microsoft Visual Studio. Microsoft Visual Studio is an integrated development environment (IDE). Compare CLion and Eclipse head-to-head across pricing, user satisfaction, and features, using data from actual users.
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.
以前都是在 win 下写代码,用的是 vs,vs 作为宇宙第一IDE,绝对好用,所以在 win 下编程,推荐vs。 然后换到了mac,妈呀,xcode 写C太难受,完全不能忍,然后同事推荐用clion,用clion得学习下cmake,学会了就非常容易了。.
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
![Eclipse Eclipse](/uploads/1/3/7/7/137729899/780936538.jpg)
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.
![Clion vs eclipse tires Clion vs eclipse tires](/uploads/1/3/7/7/137729899/340830975.gif)
Tomcat axis2. Features:
- 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.
Draw your own logo online, free. 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:
Xcode
Tulsi andXCHammer generate Xcode projects fromBazel
BUILD
files.Visual Studio Code
Official plugin for VS Code.
Features:
- 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.
Atom
Clion Vs Eclipse 2020
Find the
language-bazel
package onthe Atom package manager.Vim
See
bazelbuild/vim-bazel
on GitHubEmacs
See
bazelbuild/bazel-emacs-mode
onGitHubVisual Studio
Lavender is an experimental project forgenerating Visual Studio projects that use Bazel for building.
Eclipse
Bazel Eclipse Feature is a set of plugins for importing Bazel packages into an Eclipse workspace as Eclipse projects.
Automatically run build and test on file change
Clion Vs Eclipse Pro
Bazel watcher is a tool forbuilding Bazel targets when source files change.
Clion Vs Eclipse Tires
Building your own IDE plugin
Clion Vs Eclipse Cdt
Read the IDE support blogpost to learn more aboutthe Bazel APIs to use when building an IDE plugin.