JBang IDE Support
VS Code / VSCodium
The JBang extension works in both Visual Studio Code and
VSCodium (a free, open-source VS Code distribution).
Running jbang edit installs VSCodium by default with Java and JBang extensions pre-configured — ready to code immediately.
Install
Quickest: just run jbang edit hello.java — JBang installs VSCodium and the required extensions automatically.
Manual install in VS Code: install JBang from the VS Marketplace.
Manual install in VSCodium: install JBang from Open VSX.
Features
- Automatic classpath synchronization from JBang directives
- Completion for
//DEPS,//SOURCES,//FILES, and options - Run and Debug via CodeLens
- Create scripts from templates, export native binaries, install as apps
- Per-script projects with
java.import.jbang.projectPerScript - Automatic annotation processor configuration
build.jbangandjbang-catalog.jsonsupport
Documentation
IntelliJ IDEA
The JBang plugin makes Java, Kotlin, Groovy, JShell, and .jbang scripts first-class citizens in IntelliJ IDEA.
It uses jbang info tools as the single source of truth — no module mutation, no Gradle/Maven modification.
Install
From Marketplace:
- Settings → Plugins → Marketplace → search "JBang" → Install
- Restart IntelliJ IDEA
- Open a folder with JBang scripts — the plugin auto-detects and syncs
Early Access (EAP channel):
- Settings → Plugins → ⚙ → Manage Plugin Repositories…
- Add:
https://plugins.jetbrains.com/plugins/eap/18257 - Search "JBang" in Marketplace and install
The EAP channel receives every release, giving you the latest features before they hit stable.
Requirements
- IntelliJ IDEA 2026.2 or newer
- JBang CLI installed — or let the plugin install it from Settings → Tools → JBang
Features
- Multiple JBang roots with isolated classpaths and JDKs
- Completion for directives, Maven coordinates,
//SOURCES,//FILES, and catalog refs - Run and Debug with gutter icons and run configurations
- Per-root
//JAVAJDK registration - Diagnostics for invalid directives, unresolved dependencies, and missing resources
- Create scripts from templates via New → JBang Script
Documentation
Full documentation · JetBrains Marketplace · Source on GitHub
Eclipse
The JBang plugin for Eclipse lets you import and synchronize JBang scripts as projects, with automatic dependency resolution and JDK configuration.
Install
From Eclipse Marketplace:
- Drag the Install button to your running Eclipse, or:
- Help → Eclipse Marketplace… → search "JBang" → Install
Features
- Import JBang scripts as projects (Import Project… → JBang → JBang script)
- Synchronize JBang dependencies to existing projects via right-click
- Automatic JDK configuration from
//JAVA - Annotation processor detection
- Support for
//DEPS,//SOURCES, and@Grab
Documentation
Diode
Diode is a terminal text editor with the VS Code keyboard layout that runs VS Code extensions unchanged — over ssh, in containers, or anywhere a desktop IDE won't go. It uses the same JBang extension as VS Code, verified to work in Diode.
Install
diode --install-extension jbangdev.jbang-vscode
Or press Ctrl+Shift+X in Diode and search for "JBang". Then open a script with diode hello.java.
Features
//DEPSand//JAVAsynchronized with the Java language server- Synchronize JBang and Run JBang via CodeLens
- Completion of
//DEPScoordinates from Maven Central
Limitations
- No debugging, as Diode has no Java debugger
- Requires
jbangand a JDK on yourPATH
Documentation
Other editors
No JBang plugin for your editor? Sandbox mode creates a temporary project with all dependencies resolved and your script linked in, so any editor with Java support — typically via the Eclipse JDT Language Server — gets full completion and navigation. Edits go straight to your original script.
Graphical editors
Let JBang open the editor, e.g. Zed:
jbang edit --sandbox --open=zed yourapp.java
Terminal editors
Have JBang print the project path and open it yourself, e.g. Vim/neovim or Emacs:
nvim $(jbang edit --sandbox --no-open yourapp.java)
emacs -nw $(jbang edit --sandbox --no-open yourapp.java)
Jupyter Notebook
Jupyter Notebook is an open-source web application that allows you to create and share documents containing live code, equations, visualizations, and narrative text. With the JBang kernel, you can run Java code with JBang directly in Jupyter notebooks.
Installation
Install JupyterLab and the JBang kernel:
# Install JupyterLab (requires Python)
pip install jupyterlab
# Install JBang kernel
jbang install-kernel@jupyter-java --java 25 --enable-preview jbang
Usage
Launch JupyterLab and create a new notebook with the JBang kernel:
jupyter lab
In JupyterLab, create a new notebook and select "JBang" as the kernel. You can now write and execute Java code with JBang directives like //DEPS directly in your notebooks!
Try Online
Want to try it without installing? Use our online Jupyter environment powered by MyBinder.
Learn More
Visit the JBang Jupyter Kernel repository for more details and examples.
Online
No local install needed:
- Try JBang — Jupyter notebooks with the JBang kernel, powered by MyBinder
- JDoodle — online compiler and IDE with JBang support
- Dev container template — Java and JBang preinstalled; open in GitPod