Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Cucumber feature JSON formatterNew to Visual Studio Code? Get it now.
Cucumber feature JSON formatter

Cucumber feature JSON formatter

Xavier Le Tohic

|
355 installs
| (0) | Free
Format JSON in .feature files preserving existing indentation
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cucumber JSON formatter

This extension allow you to automatically indent all the JSON in the current opened .feature file.

GitHub repository
Create an issue
Write a review

Usage

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

Incoming features

  • [x] Indent size from editor config (.editorconfig or VScode settings)
  • [ ] Command that prompt a popup to ask for a custom indent size
  • [ ] Command that indent all JSON on all .feature files
  • [ ] Command that indent everything on the current .feature file

Example

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"
        }
      }
      """
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft