RSM
RSM

Reputation: 433

Auto format where block in Spock testing?

When writing spock test is there a way I can auto format the where block in Eclipse?

where:
    name      | length
    "Spock"   | 2
    "Java"    | 5
    "Groovy"  | 6

Without having to hit Tabs and spaces all the time.

Upvotes: 0

Views: 1103

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123910

Auto-formatting of data tables would make a good feature request for the Eclipse Spock plugin. IntelliJ supports it out-of-the-box.

Upvotes: 2

Related Questions