Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Cucumber FormatterNew to Visual Studio Code? Get it now.
Cucumber Formatter

Cucumber Formatter

Telmo Gomes

|
5,266 installs
| (1) | Free
Indent Cucumber step contents inside .feature files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

cucumber-formatter

Features

Automatically indent JSON and Graphql steps inside the currently opened .feature file.

GitHub repository
Create an issue
Write a review

Disclaimer

This project extends the functionality of stale cucumber-json-formatter project.

Usage

  1. Open your .feature file
  2. Open command list: CMD + Shift + P
  3. Select Format the current .feature file

Examples

Before

  Scenario: Should format JSON
    Given the following JSON:
      """
{
"hello": "world",
"object":{
"john": "doe"
}
}
      """

After

  Scenario: Should format JSON
    Given the following JSON:
      """
      {
        "hello": "world",
        "object": {
          "john": "doe"
        }
      }
      """

Before

  Scenario: Should format GQL
    Given the following GQL query:
      """
query getPotatoes($id: ID!) {
potatoes(id: $id) {
today {
price
}
}
}
      """

After

  Scenario: Should format GQL
    Given the following GQL query:
      """
      query getPotatoes($id: ID!) {
          potatoes(id: $id) {
              today {
                  price
              }
          }
      }
      """
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft