点击关注公众号,Java干货及时送达![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/e2b3557257d9bcc6945ca1ab392723ed.jpg)
牛逼!又发现了一款面试题库,太全了!!
(点击查看)
1. 打开 Toolbar
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/5622d07a0a5f540624d1b7df7894ad38.jpg)
设置方法
标注1:View–>Toolbar
标注2:View–>Tool Buttons
2. 类文档信息悬浮框
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/201cca6aafcf7f2047ec77acc44da2d3.jpg)
设置方法
File–>settings–>Editor–>General–>勾选Show quick documentation…
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/c7348f1ec8da2afe6334fc7b1472b390.jpg)
File–>settings–>Editor–>Appearance–>勾选![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/f2b86233c17d7cbfee860e1293a10550.jpg)
备注:IDEA 的默认设置是严格区分大小写提示的,例如输入 String 不会提示 String,不方便编码
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/e06df70a4abc8617ced112e55734c3fe.jpg)
File–>settings–>Editor–>General -->Code Completion -->
5. 主题切换
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/7cd2521a4c0dc65c4613808667958a63.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/6c530c6adcce189cb2227dd96dbc0b58.jpg)
File–>settings–>Appearance & Behavior–>Appearance–>![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/e0fb07a72a9d662a5df36f60afdfcf81.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/f5a6b7bc1f7a1c8676802c195b338ed1.jpg)
如果想将编辑页面变换主题,可以去设置里面调节背景颜色![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/b60b014767a1ec27baacb21ee167435e.jpg)
如果需要很好看的编码风格,这里有很多主题
http://color-themes.com/?view=index&layout=Generic&order=popular&search=&page=1
点击相应主题,往下滑点击按钮
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/0889699a610dc56f901dcbc42de0c846.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/0a52771672cd36c48ba19fedbc47aa51.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/8b40432a5eb8157f24fc1a47f262198e.jpg)
在上面的位置选择导入jar包,然后重启idea生效,重启之后去设置
备注:默认情况是需要手动导入包的,比如我们需要导入Map类,那么需要手动导入,如果不需要使用了,删除了Map的实例,导入的包也需要手动删除,设置了这个功能这个就不需要手动了,自动帮你实现自动导入包和去包,不方便截图,效果请亲测~
File–>settings–>Editor–>general–>Auto Import–>
8. 双排 Tabs效果图
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/a04984dbcc94eab0afe4f7631c743e99.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/e134ac2e6bc108e59cb45bc660d6567e.jpg)
File–>settings–>Editor–>General -->Editor Tabs–>去掉√
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/c1be945a8eabec1ec07984c345fa2ee9.jpg)
备注:默认安装启动Idea字体很小,看着不习惯,需要调整字体大小与字体(有需要可以调整) File–>settings–>Editor–>Font–>
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/eb762134a34f6ead99c1cc89bcad11ef.jpg)
10 . 备注效果图
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/6aaa57d2755041235e67fa05d6c55960.jpg)
设置方法
https://blog.csdn.net/zeal9s/article/details/83514565 备注:Eclipse如果需要对比代码,只需要拖动Tabs即可,但是idea要设置
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/f68447efa4a9b8467c2c97fdfa2fdd0c.jpg)
备注:从Eclipse移植到idea编码,好多快捷键不一致,导致编写效率降低,现在我们来更换一下快捷键
设置方法
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/b12f18996f2f2cae872cef32453456e1.jpg)
例如设置成Eclipse的,设置好了之后可以ctrl+d删除单行代码(idea是ctrl+y)![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/83707d0d7aa61cd1b30a91321fa51928.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/c538deba1daab7c5535f0200c198e82c.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/1fc7d27b49069b70c6ff3c37d2c377f2.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/1ae8fa4028b3e626fcc348412eb571a4.jpg)
设置方法
File–>settings–>Editor–>
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/1f6e3ee55e8185c5d2e826187fef8930.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/4aff8d1ef2bcbe8ec1c5d3165d45d372.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/43d858f91a89e9e6316c3a7e4cc73d8b.jpg)
强烈建议,不要给关掉,不要嫌弃麻烦,他的提示都是对你好,帮助你提高你的代码质量,很有帮助的![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/3035c3d6b9cd806a028a3a7d3a426ae6.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/47490c11dfd2b6f1d2e946a7e4ebcaf8.jpg)
这个就是当你把窗口忽然间搞得乱七八糟的时候,还可以挽回,就是直接restore一下,就好啦。![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/40480b7160e4545476dc2e27bd7a58ea.jpg)
CTRL + SHIFT + ENTER 在当前行任何地方可以快速在末尾生成分号
如果你的项目里有非常多的controller,里面有非常多的http或者resful方法。如何快速找到这些方法呢?这个时候,ctrl+alt+shift+n就可以派上用场了。比如说,你依稀记得入账单相关的接口,都有个bill的url路径,那么使用ctrl+alt+shift+n后,直接输入/bill即可。![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/7142c25f7df46bc671728f1d55e51acc.jpg)
当你在成千上万的Controller里寻找方法时,这一招就可以大大提高效率。这个也非常有用,因为代码太长,某个for循环,可能已经撑满整个屏幕了。这个时候,找到某个大括号对应的另外一边就很费劲。你可以将光标定位在某个大括号一边,然后使用ctrl+]或者ctrl+[来回定位即可。
补充:以上的配置信息都保存在系统盘的
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/55e8dd38cd4d36d2a44e354583bc046f.jpg)
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/171a34ce71d8a5001f6afbdaa50c3417.jpg)
config:在初始化安装IntelliJ IDEA时有询问你是否导入以存在的配置信息,这个config就是你的配置信息,方便更换电脑和换系统的时候重新安装,前提是要保存好此文件夹。system:此文件夹是IntelliJ IDEA发生什么不可预知性的错误时,比如蓝屏,突然断电导致项目不能启动,可以尝试删除此文件,让系统重新生成一个system的文件。如有文章对你有帮助,
欢迎关注❤️、点赞?、转发?!
![](https://system-daogeziyuan-1251174242.cos.ap-nanjing.myqcloud.com/type_article/sucaituijian/62fbf85fa4b71429f269c2e4982a29a0.jpg)
牛逼!又发现了一款牛逼的Java面试题库,史上最强!点击文末“阅读原文”可直达
文章为用户上传,仅供非商业浏览。发布者:Lomu,转转请注明出处: https://www.daogebangong.com/articles/detail/IntelliJ%20IDEA%20takes%20off%20with%20this%20configuration.html
评论列表(196条)
测试