JBang for IntelliJ IDEA
The JBang plugin brings JBang scripts into IntelliJ IDEA while keeping JBang itself as the source of truth.
It reads script metadata with jbang info tools and exposes dependencies and declared sources as project overlays.
It does not rewrite IntelliJ modules, Gradle builds, or Maven projects.
Highlights
-
Automatic synchronization after opening or saving a JBang root script
-
Explicit Sync JBang Project action with visible progress and detailed errors
-
Multiple root scripts with isolated classpaths and active-root switching
-
Resolution and navigation for
//SOURCESand//FILES -
Local and remote Maven coordinate completion for
//DEPS -
Directive, path, and catalog
script-refcompletion -
Exact diagnostics for invalid directives, unresolved dependencies, and missing resources
-
Per-root
//JAVAJDK registration and selection in standalone projects -
Run and Debug configurations, gutter icons, and editor/project context actions
-
CLI-backed New > JBang Script templates
-
Java, Kotlin, Groovy, JShell (
.jsh), and.jbangscript recognition -
JSON Schema support for
jbang-catalog.json

How project integration works
Each JBang root has its own resolved metadata, dependency roots, declared source files, and requested Java version. The active root controls the classpath and JDK used for its included sources. Dependencies appear under External Libraries as synthetic JBang libraries; existing Gradle and Maven models remain untouched.
See Features for a visual tour, Usage for the complete workflow, and Installation for executable discovery and configuration.