开发环境 / IDEA系列 IDEA入门(三):使用技巧篇 2021-05-22 # IDEA入门(三):使用技巧篇(2020.3.3为例) [TOC] ## 1. 当前项目配置VS默认配置: - 打开默认配置:顶部导航栏 -> File -> new projects Settings -> Default Settings for new Projects.... - 打开当前配置:顶部导航栏 -> File -> Settings / Project Structs **如下图:** ![](/uploads/1/image/public/202105/20210522170521_90i9ouoajf.png) ## 2. 全局JDK(默认配置) ![](/uploads/1/image/public/202105/20210522171139_vcmyi2fx0h.png) ![](/uploads/1/image/public/202105/20210522171210_88eyf5lwyx.png) ## 3. 全局Maven(默认配置): ![](/uploads/1/image/public/202105/20210522170521_90i9ouoajf.png) ![](/uploads/1/image/public/202105/20210522171546_3u52jrvqn0.png) ![](/uploads/1/image/public/202105/20210522171657_heybguqek9.png) ## 4. 自动导包和智能移除 (默认配置): ![](/uploads/1/image/public/202105/20210522170521_90i9ouoajf.png) ![](/uploads/1/image/public/202105/20210522172051_8dfc1h5p49.png) ## 5.自动编译 ![](/uploads/1/image/public/202105/20210522172315_g44piifv29.png) > 说明:开启自动编译之后,结合Ctrl+Shift+F9 会有热更新效果。 ![](/uploads/1/image/public/202105/20210522172545_nwepml1wmm.png) > 敲击 Ctrl + Shift + Alt + / 然后双击Shift搜索进入Registry ,找到compiler.automake.allow.when.app.running ,然后勾选上 ## 6.懒人必备快捷键 ### 6.1 按【鼠标中键】快速打开智能提示,取代alt+enter > File->Settings-> Keymap-> 搜索 Show Context Actions -> 添加快捷键为鼠标中键。