IntelliJ IDEA中超实用的设置

1.自动删除不需要的包引用

File -> Settings -> Editor -> General -> Auto Import -> 右侧窗口java 下勾选☑️Optimize imports on the fly

2.去除Spring注入Could not autowire .No beans of 'xxx' type found 的错误提示

File -> Editor -> Code Style - > inspections ->右侧窗口 Spirng Core :去掉勾选 Autowiring for Bean Class

3.撤销git已经commit但未push的记录

Version Control(一般在idea下方操作栏)-> Log ->选中commit的记录右键 -> Undo Commit

4.ideal中忽略Ignore File某些类型的文件或文件夹(不显示在项目中,也不会提交git或svn,超级实用)

File-> Settings ->Editor-> File Types ->右侧窗口最下面Ignore files and folders 中添加想要忽略的文件或文件夹,如*.ideal;(注意以分号";"隔开)

// 未完待续。。。

猜你喜欢

转载自blog.csdn.net/weixin_48470176/article/details/107817960