blob: 8d3b16a18f813391e809b7c3d917beb78d2e96eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
---
layout: documentation
title: IDE integration
---
# Integrating Bazel with IDEs
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.
## Supported IDEs and editors
### IntelliJ, Android Studio and CLion
*Status*: Beta, supported by the Bazel team.
[Plug-ins](http://ij.bazel.build) for Android Studio, CLion, and IntelliJ enable you to:
* Import BUILD files into the IDE
* Make your IDE aware of Bazel's build and Skylark languages
* Build, test, and execute binaries directly from the IDE
Installation:
* [Android Studio plugin](https://plugins.jetbrains.com/plugin/9185-android-studio-with-bazel)
* [CLion plugin](https://plugins.jetbrains.com/plugin/9554-clion-with-bazel)
* [IntelliJ plugin](https://plugins.jetbrains.com/plugin/8609-intellij-with-bazel)
### Xcode
*Status*: Beta, supported by the Bazel team.
[Tulsi](http://tulsi.bazel.build) generates Bazel-compatible Xcode projects from Bazel's `BUILD` files.
### Eclipse
*Status*: experimental, not officially supported by the Bazel team.
See [installation steps on GitHub](https://github.com/bazelbuild/eclipse#installation)
### Visual Studio Code
*Status*: not officially supported by the Bazel team.
Provides syntax highlighting and formatting for Bazel `BUILD` and `WORKSPACE` files.
See [Bazel in Visual Studio marketplace](https://marketplace.visualstudio.com/items?itemName=DevonDCarew.bazel-code)
### Atom
*Status*: not officially supported by the Bazel team.
See [`language-bazel` package](https://atom.io/packages/language-bazel)
### Vim
*Status*: Beta, not officially supported by the Bazel team.
See [`bazelbuild/vim-bazel`on GitHub](https://github.com/bazelbuild/vim-bazel)
## Automatically run build and test on file change
[Bazel watcher](https://github.com/bazelbuild/bazel-watcher) is a tool for building Bazel targets when source files change.
## Building your own IDE plugin
Read the [*IDE support* blog post](https://bazel.build/blog/2016/06/10/ide-support.html) to learn more about the Bazel APIs to use when building an IDE plugin.
|