IntelliJ Definition Case - Cucumber

Ever since I upgraded to the latest IntelliJ community version 15.0.3, whenever I automatically generate a step definition from a function definition file using alt + enter , it creates a method in the case of a camel, rather than a regular underline style.

For example, it was created in this way.

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

But now it is generated in the usual camelCase convention:

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

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

thanks

+5
source share
1 answer

What you can do is check

Run → Change Configuration

then go to the cucumber configuration. Inside the program arguments, check

- fragments on camels

is present and takes it out. which should make him show him again in the body of the snake. Hope that helps :-)

+1
source

Source: https://habr.com/ru/post/1243920/


All Articles