Reformat code option

Answered

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.

0
1 comment

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.

 

0

Please sign in to leave a comment.