Am using IntelliJ IDEA Ultimate 2019.3 on macOS Catalina 10.15.4.
Trying to figure out how to NOT have an empty line when I conduct a cmdoptionl via the hot keys.
Unformatted:

After conducting cmdoptionl, its still unformatted (lines 10 and 11 are still visible):

This is what I am seeking after issuing cmdoptionl:

As you can see, I do not want an empty line / newline inserted after the last closing } brace of a Java class.
There is an option to enforce an empty line at the end of file, but there is no the opposite option at the moment.
If this option exists in any third-party formatters, you could try a plug-in or an external tool that will apply it (like Eclipse Code Formatter).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With