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