How to correct indentation in IntelliJ

后端 未结 7 1627
逝去的感伤
逝去的感伤 2020-12-04 10:18

How can indentation be automatically (not manually) corrected in IntelliJ?

In Eclipse, it\'s possible to just highlight the code that needs indenting, right-click, a

7条回答
  •  伪装坚强ぢ
    2020-12-04 10:59

    Just select the code and

    • on Windows do Ctrl + Alt + L

    • on Linux do Ctrl + Windows Key + Alt + L

    • on Mac do CMD + Option + L

提交回复
热议问题