Skip to content

Feature: Auto-Indenting as you type #4

@alistairjevans

Description

@alistairjevans

It would be good to apply 'best practice' layout control on AutoStep files (if a user enables the feature),
to automatically format the document as people type.

This includes (but not limited to):

  • Indenting Scenarios at the expected level.
  • Keeping Given/When/Then step indentation consistent.
  • Indenting 'And' steps on the line immediately after the previous one so the first token after the step type keyword lines up with the original step.
  • Aligning comments above a line to the same indentation as the line below
  • Indenting description blocks.

Things to consider:

  • How to make this available as a setting?
  • Make indentation character and count configurable? Tabs vs Spaces anyone?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions