Skip to main content

IntelliJ Plugin

The SpecBinder IntelliJ plugin provides comprehensive Gherkin language support for .feature and .fspec files, tightly integrated with SpecBinder's generated Java test classes.

Installation

Install from the JetBrains Marketplace:

  1. Open Settings > Plugins > Marketplace
  2. Search for SpecBinder
  3. Click Install and restart your IDE

Requirements: IntelliJ IDEA 2024.2+ (Community or Ultimate)

Features

Syntax Highlighting

Full Gherkin syntax highlighting with customizable colors for keywords, tags, comments, tables, and doc strings.

Customize via Settings > Editor > Color Scheme > Gherkin.

  • Ctrl/Cmd+Click on a Gherkin step to jump to the corresponding Java step method
  • Navigate back from Java methods to their Gherkin step definitions
  • Works with both SpecBinder-generated methods and Cucumber annotations

Code Completion

Auto-complete step text based on existing Cucumber annotations and method names in your project.

Structure View

View the outline of your feature files via Cmd+7 (macOS) / Alt+7 (Windows/Linux):

  • Feature / Rule / Scenario hierarchy
  • Quick navigation to any element

Code Folding

Collapse Feature, Rule, Scenario, Background, and Examples blocks to focus on what matters.

Run Configurations

Gutter run icons appear next to Feature, Rule, and Scenario keywords — click to run the corresponding JUnit tests directly from your feature file.

Find Usages & Rename

  • Find Usages on Java step methods to locate all Gherkin steps that reference them
  • Shift+F6 on Cucumber annotation strings to rename across both Java and feature files