在我的測驗中,我有butiful代碼
public void createEntity(String jsonString) {
response = getBaseRequestWithCurrentCookie()
.given()。
body(jsonString)。
contentType(ContentType.JSON)
.when().
post()
.then().
log().ifError()。
extract().response()。
}
但是,如何配置intellij Idea代碼風格(針對Java),使其不對齊?
public void createEntity(String jsonString) {
response = getBaseRequestWithCurrentCookie()
.given()。
body(jsonString)。
contentType(ContentType.JSON)
.when().
post()
.then().
log().ifError()。
extract().response()。
}
uj5u.com熱心網友回復:
- 將構建器方法名稱添加到設定(macOS上的首選項)|編輯器|代碼風格|Java|包裝和大括號|鏈式方法呼叫|構建器方法
- 啟用設定(macOS上的首選項)|編輯器|代碼風格|Java|包裝和大括號|鏈式方法呼叫|保持構建器方法縮進選項:
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/320506.html
標籤:

