📜  保存时的 eclipse 格式 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:29.344000             🧑  作者: Mango

代码示例1
To enable it, do the following:

    Go to Window > Preferences > Java > Editor > Save Actions.
    Select Perform the selected actions on save.
    Select Format Source code. ...
    Make sure Organize imports are selected.
    Select Additional actions.
    Click Ok, edit some code, save it and watch Eclipse format it automatically.