Let’s say I have code that looks like this:
public abstract class
ResourceDownloaderBaseImpl
implements ResourceDownloader {
public Object
getProperty(
String name)
throws ResourceDownloaderException {
....
And bunch of other. When I press Ctrl+Alt+L in Intellij IDEA it does not format it into single line like this:
public abstract class ResourceDownloaderBaseImpl implements ResourceDownloader {
public Object getProperty(String name) throws ResourceDownloaderException {
...
Is there a way to adjust the code reformating feature so it puts the signatures onto a single line?
Check out the
Code Stylesection in yourProject Settingswhere you can specify almost everything.More precisely, look under
Code Style–Wrapping and bracingand see whetherkeep line breaks during reformattingis switched on