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
  • 46,221
  • 15
  • 164
  • 151
Tom Bailey
  • 405
  • 4
  • 6
  • 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
  • 46,221
  • 15
  • 164
  • 151
  • 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