1

Whenever I start up IntelliJ it always does this to my setter methods, It makes them in-line and it's really annoying. Does anyone know how to change this?

enter image description here

Ali Dehghani
  • 43,096
  • 14
  • 154
  • 142
Tom Bailey
  • 375
  • 2
  • 5
  • 12

1 Answers1

0

Go to Settings > Editor > General > Code Folding and in Collapse By default section, disable One-line methods checkbox:

enter image description here

Ali Dehghani
  • 43,096
  • 14
  • 154
  • 142
  • 1
    While this is a correct way to achieve what is asked for, the question is no entirely correct. In this Idea does not format the code, but just collapses the section. – Alissa Jul 07 '16 at 14:24