Reformat code option
已回答
I want to reformat the following code
public static void main(String[] args) {
SpringApplication.
run(DemoApplication.class, args);
}
to
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
but when i am pressing Ctrl+Alt+L it is not reformatting it to same line.
Any idea what to change in the code style settings.
请先登录再写评论。
Disabling the option to keep the line breaks is supposed to help, but it doesn't work because of the bug, please follow https://youtrack.jetbrains.com/issue/IDEA-227688 for updates.