How to disable auto formatting upon save in Eclipse?

后端 未结 5 1097
南笙
南笙 2020-12-15 15:49

Eclipse keeps auto formatting upon save, for example: it is insisting the following code should be in a single line once I save, despite breaking it up the way I want to.

5条回答
  •  失恋的感觉
    2020-12-15 16:32

    Absolutely maddening improvement. For if statements do the following: Window | Preferences | Java | Code Style | Formatter | Control statements tab Select Keep simple if on one line. You might also try the Line wrapping tab

提交回复
热议问题