1.自动import
在IDEA中,打开 IDEA 的设置,找到 Editor -> General -> Auto Import。勾选上
- Add unambiguous imports on the fly
- Optimize imports on the fly (for current project)
2.gitee 提交格式化
设置方法如下:
1.打开设置
2.找到版本控制(Version Control),点击提交(Commit)
3.勾选Before Commit下的Reform code
3.高效插件Save Actions
文章来源:https://www.toymoban.com/news/detail-606050.html
文章来源地址https://www.toymoban.com/news/detail-606050.html
- activate save actions on save – 在保存的时候激活save actions
- optimize imports – 自动删除没有引用的imports
- reformat file – 自动格式化代码
- add missing @Override – 在save actions激活的时候直接提添加override
- add a serialVersionUID – 自动添加序列化id
到了这里,关于IDEA代码自动格式化工具的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!