Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Bazel extension for Java(TM) Language Support (bazel-eclipse integration)New to Visual Studio Code? Get it now.
Bazel extension for Java(TM) Language Support (bazel-eclipse integration)

Bazel extension for Java(TM) Language Support (bazel-eclipse integration)

Preview

Gunnar Wagenknecht

|
3 installs
| (0) | Free
Bazel support for Java Linting, Intellisense, formatting, refactoring and more...
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Bazel extension for Java™️ Language Support for VS Code

Build License

This extension adds support for Bazel to the Java™️ Language Support for VS Code. It plugs into the Eclipse Java Language server and computes project dependencies and classpath information using Bazel BUILD.bazel files.

It's a lightweight integration without much additional Bazel support. Hence, we recommend installing additional Bazel extensions for Starlark support (syntax highlighting, etc.)

Getting Started

Go and install the extension from the VSCode Marketplace (see listing here) or OpenVSX Registry (see listing here).

Once installed, open VSCode in any Bazel Workspace with Java targets. The extension will look for a WORKSPACE.bazel or MODULE.bazel file to identify a Bazel workspace. Next it will look for a .bazelproject file to look for directories and targets to resolve. If no .bazelproject file can be found a default one will be created. For details of the lookup sequence please have a look at the latest implementation of BazelProjectImporter.java in the language server.

Troubleshoot tips may be useful if it doesn't "just work".

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft