Eclipse 保存文件时自动格式化代码

2021-08-12  本文已影响0人  不需要什么就能清醒

Eclipse里已带自动格式化功能,默认是没有开启该功能的。
具体方法:windows==>Preferences==>Java==>Editor==>Save Actions, 勾选“Perform the selected actions on save”,其他选项根据需要自己选择或者配置就可以了。

最后Apply and Close。


image-20210812182922934.png
上一篇 下一篇

猜你喜欢

热点阅读