How to remove unnecessary blank line on code formatting in IntelliJ?

前端 未结 5 968
情深已故
情深已故 2020-12-12 18:56

Is it possible to remove empty/blank lines using code formatting in Intellij IDEA?

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-12 19:29

    • File >> Setting >> Editor >> Code style java >>Blank lines tab

    • You should change to 0 in code label(as picture), It would remove all unnecessary blank line when press format shortcut: ctrl + alt + L

提交回复
热议问题