Reputation: 1485
I'm new to Intellij and this IDE is automatically removing new lines for my getters and setters putting them in one line !
public void setSocialNetwork(SocialNetwork socialNetwork) { this.socialNetwork = socialNetwork; }
I searched and found that I can use the following setting under Settings >> Code Style >> Java. However I have the wanted option selected but it still removes the new lines.
Upvotes: 0
Views: 694
Reputation: 595
Go to the Settings -> Editor -> General -> Code Folding
and uncheck the checkbox One-line methods
Upvotes: 2