Socratic Phoenix
Socratic Phoenix

Reputation: 556

IntelliJ forcing full bracket usage

So i'm using IntelliJ, and whenever I have a single line statement within brackets it makes it one line:

public AddChatTrigger(TutorialPlugin plugin) { this.plugin = plugin; }

How do I tell IntelliJ to format like so:

public AddChatTrigger(TutorialPlugin plugin) { 
    this.plugin = plugin; 
}

I tried playing with the code style settigns, but I couldn't seem to find the right one.

Upvotes: 0

Views: 141

Answers (1)

Peter Gromov
Peter Gromov

Reputation: 18911

It looks like code folding. It can be disabled in File | Settings | Editor | General | Code Folding | One-line methods.

Upvotes: 1

Related Questions