Skip to content

An intellij plugin supporting Closure Template language (Soy)

License

Notifications You must be signed in to change notification settings

google/bamboo-soy

Repository files navigation

Bamboo Soy for IntelliJ 🏮🍣🏮

Java CI with Gradle GitHub license

The smartest Intellij plugin for the Soy templating language.

output

Adds syntax highlighting, autocompletion and static analysis for your closure template files.

Installation

Install the plugin directly from your IDE or the Jetbrains plugin repository.

Feature Summary

Bamboo Soy aims to provide super-fast, no-compromise language support for Soy in IntelliJ.

  • Syntax highlighting with complete HTML support,
  • References, go-to definition, find usage,
  • Structure view,
  • Auto-formatting,
  • Documentation lookup,
  • YCM-style autocompletion (just press Ctrl-Space anywhere to get the suggestions)
    • Template and namespace identifiers,
    • Identifiers in scope,
    • Parameters and types,
    • Keywords and literals,
  • Live templates (snippets) for xid, css, if-else, call, delcall, ...
  • Static analysis inspections for
    • Missing required or invalid parameters,
    • Unused parameters or variables,
    • Wrong usage of double quotes for Soy strings,
  • Understands and preserves doc comment structure on enter,
  • Latest syntax support (@inject, xid and css function expressions, ...),

As a bonus, the parser was designed to support incomplete code constructs & unbalanced tags (things don’t break when you type).

Release notes

See the release notes page.

Contributing

Small and large contributions welcome! For new features or substantial changes, please open an issue beforehand so that it can be discussed.

For all the details, see the contributing page.