Eclipse: Can you format code on save?

前端 未结 4 1338
故里飘歌
故里飘歌 2020-12-04 08:31

In Eclipse, under Windows -> Preference -> Java -> Code Style, you can define code templates for comments and code, and you can s

4条回答
  •  一整个雨季
    2020-12-04 09:20

    I have a snapshot of the setting. Please follow the path:

    In the Preferences window, choose Java --> Editor --> Save Actions.

    Check the Perform the selected actions on save, and check the Format source code box.

    enter image description here

提交回复
热议问题