I just started using IntelliJ IDEA and went through the automatic code clean-up options. It gives me the option to remove unneeded white lines, but I can't find an option to automatically remove unneeded break for example here:
System.out.println("this, sir "
+ "is an unneeded line break");
Does this feature exist, if yes, where?
Under Preferences -> Code Style -> Java -> Wrapping and Braces there is an option called Keep when reformatting with a checkbox for Line breaks.
If you uncheck it IDEA will do what you want.
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