man*_*nzk 3 java format formatting intellij-idea
我想在 IntelliJ 中将大括号添加到单行语句中。可以说我有:
if(x)
print(y)
Run Code Online (Sandbox Code Playgroud)
我希望 IntelliJ 自动将其格式化为:
if(x){
print(y)
}
Run Code Online (Sandbox Code Playgroud)
File -> Settings -> Editor -> Code style -> Java -> Wrapping and braces -> if/while/for() statement -> Force braces -> Always