6

Ever since I upgraded to latest community edition of IntelliJ 15.0.3, whenever I auto generate a step definition from the feature definition file using alt + enter, it creates the method in camel case rather than usual style with underscores.

For e.g. it used to be generated like this

@When("Cucumber is awesome")
public void cucumber_is_awesome() {}

But now it generates in usual camelCase convention:

@When("Cucumber is awesome")
public void cucumberIsAwesome() {}

Is there any way to change this setting back to the first style?

Thanks

RandomQuestion
  • 6,778
  • 17
  • 61
  • 97

1 Answers1

2

What you can do is check the

Run -> Edit Configuration

then go to the cucumber config. Within the Program Arguments check if

--snippets camelcase

is present and take it out. that should make it show it in snake casing again. Hope that helps :-)

Sammy65
  • 627
  • 2
  • 12
  • 28
  • Alternatively, you could explicitly add the argument to get snippets the preferred way (use argument --help to get the different options) – Marit Mar 31 '18 at 05:54
  • I don't see a config file. What can I do now? – paul Apr 14 '21 at 11:25
  • @paul, might be late already but, it's not a configuration file but the Intellij Run Menu setting. – Sammy65 Apr 12 '22 at 22:34