Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>BDD Gherkin FormatNew to Visual Studio Code? Get it now.
BDD Gherkin Format

BDD Gherkin Format

ang.helll

|
13 installs
| (0) | Free
Mute presentation for .feature files — Format Document + syntax highlighting. No binding index. Companion to BDD Guardian.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

BDD Gherkin Format

VS Code / Cursor extension: mute presentation for .feature files —

  1. Format Document — indent + align tables
  2. Syntax highlighting — keywords, steps, comments, tags, tables, strings (theme scopes)

No binding index. No LSP. No step matching. Companion to BDD Guardian.

Marketplace anghelll.bdd-gherkin-format
Version 0.3.0
Publisher anghelll

Why a separate extension?

ForgeOne splits concerns on purpose:

Extension Role
BDD Gherkin Format (this) How .feature looks — layout + syntax colors
BDD Guardian What steps mean — step ↔ binding map
BDD Pilot Run tests / TRX
BDD Jarvis Workspace insights / context packs

Incumbents (Cucumber Official, Full Support) bundle format + highlighting with a second resolver. This extension stays mute on the map: presentation only, so you can drop those bundles without fighting Guardian.

Install

  1. Marketplace: BDD Gherkin Format, or Install from VSIX → bdd-gherkin-format.vsix
  2. Recommended: BDD Guardian for bindings
  3. Open a .feature → syntax colors apply; Format Document / format-on-save (defaults for [gherkin])

If another formatter is installed (e.g. Cucumber Official), pick this one:

"[gherkin]": {
  "editor.defaultFormatter": "anghelll.bdd-gherkin-format",
  "editor.formatOnSave": true
}

Disable formatting with bddGherkinFormat.enabled: false (highlighting stays).

What it does

  • Indent Feature / Rule / Scenario / steps / Examples / tables (2-space default; indentSize or editor tab size)
  • Official EN synonyms: Example, Scenario Template, Scenarios, Business Need, Ability, *
  • Align consecutive |…| table columns (padding only; numeric cells right-aligned; \| stays in-cell)
  • Format Selection
  • Editor language config: fold by indent, Enter after keywords, # comments, @tag / <placeholder> word pattern
  • TextMate highlighting: structural keywords, step keywords, # comments, @tags, tables, quotes, DocString fences
  • Language id gherkin for .feature (works even without Guardian)

What it does not do

  • Index or validate step bindings (no bound/unbound colors — that is Guardian)
  • Autocomplete, diagnostics, generate binding, run tests
  • LSP / undefined-step / glue globs
  • Custom color palette (uses your VS Code theme scopes)
  • Full i18n Gherkin keyword sets (English dialect + synonyms in v0.3)

Settings

Setting Default Description
bddGherkinFormat.enabled true Enable Format Document / Selection
bddGherkinFormat.indentSize null Spaces per indent unit. null uses the editor tab size (Gherkin defaults to 2)
bddGherkinFormat.alignNumbers true Right-align numeric table cells (integers and decimals)

Develop

npm install
npm run verify:local   # lint + tests + VSIX (Capa A)

See CONTRIBUTING.md · ROADMAP.md · docs/IDEATION.md · docs/EXTENSION_PACK.md

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft