IntelliJ IDEA 版本: ULTIMATE 2019.1
1.彻底卸载IntelliJ IDEA
打开终端:cd Users/xxx/Library/
执行命令: rm -rf Logs/IntelliJIdeaxxx/
rm -rf Preferences/IntelliJIdeaxxx/
rm -rf Caches/IntelliJIdeaxxx/
2.调整VM配置文件
IntelliJ IDEA.app右键-->显示包内容-->Contents-->bin-->idea.vmoptions
-Xms500m
-Xmx1500m
-XX:ReservedCodeCacheSize=500m
3.配置JDK(三种)
File-->Project Structure-->SDKs-->"+"-->JDK
File-->New-->Project-->Project SDK "New"按钮
启动页面右下角-->Configure-->Structure for New Project
4.View中勾选toolbar、toolwindowbars。
5.eclipse中有workspace(工作空间)和project(工程)的概念,在idea中只有project(工程)和module(模块)的概念。
eclipse中workspace 相当于 idea中的project
eclipse中的project 相当于 idea中的module
6.idea中一个project打开一个窗口,eclipse一个窗口可以管理n个项目,idea是做不到的。项目下分为各种module模块,有利于分布式部署
7.如何删除module:选项-->open module settings-->点击"-"-->ok,选项-->delete-->delete。
8.常用设置 Preferences
--Editor
①设置鼠标滚轮修改字体大小:General勾选Change font size(Zoom)with Command+Mouse Wheel
②设置鼠标悬浮提示:General勾选Show quick documentation on mouse move 并且Delay设置为1000即1秒
③设置自动导包功能:General-->auto import中Insert imports on paster选择All,并且勾选add unambiguous...和optimize imports...(自动校对)
④设置显示行