I have butiful code in my tests
public void createEntity(String jsonString) {
response = getBaseRequestWithCurrentCookie()
.given().
body(jsonString).
contentType(ContentType.JSON)
.when().
post()
.then().
log().ifError().
extract().response();
}
But how to configure intellij Idea code style(for Java) so that it doesn't align it ?
public void createEntity(String jsonString) {
response = getBaseRequestWithCurrentCookie()
.given().
body(jsonString).
contentType(ContentType.JSON)
.when().
post()
.then().
log().ifError().
extract().response();
}
CodePudding user response:
- Add builder method names to Settings (Preferences on macOS) | Editor | Code Style | Java | Wrapping and Braces | Chained method calls | Builder methods
- Enable Settings (Preferences on macOS) | Editor | Code Style | Java | Wrapping and Braces | Chained method calls | Keep builder methods indents option: