Intellij IDEA 14 安装之后
设置IDEA的字体
File -> Settings -> Appearance & Behavior -> Appearance -> 勾选Override default fonts by -> Name下拉框选择字体(文泉驿微米黑/SansSerif)设置显示内存使用情况
File -> Settings -> Appearance & Behavior -> Appearance -> 勾选Show memory indicator设置主题风格
File -> Settings -> Appearance & Behavior -> Appearance -> 下拉Theme选择Darcula设置光标位于行后(14版本默认已经是了)
File -> Settings -> Editor -> General -> 去掉勾选Allow placement of caret after end of line设置显示代码行数和方法线
File -> Settings -> Editor -> General -> Appearance
Show line numbers 勾选
SHow method separators 勾选设置Tab显示多行和Tab个数
File -> Settings -> Editor -> General -> Editor Tabs
Show tabs in single row 去掉勾选
Tab limit 设置16设置代码提示不区分大小写
File -> Settings -> Editor -> General -> Code Completion -> Case Sensitive completion, 默认First letter区分大小写,改为None不区分大小写设置自动导入包
File -> Settings -> Editor -> General -> Auto Import 勾选Optimize imports on the fly 自动优化导入的包,比如自动去掉一些没有用到的包
勾选Add unambiguous imports on the fly 自动导入需要用到的包设置代码的字体
File -> Settings -> Editor -> Colors & Fonts -> Font -> Save As 另存一个模板比如MyFont -> Primary font 修改字体(Source Code Pro)设置控制台的字体
File -> Settings -> Editor -> Colors & Fonts -> Console Colors 同上(Source Code Pro)设置导入包时不使用*来匹配 File -> Settings -> Editor -> Code Style -> Java -> Imports Class count to use import with '*' 设置99
Names Count to use static import with '*' 设置99设置代码单行注释不在行最开头处,而是紧跟代码
File -> Settings -> Editor -> Code Style -> Java -> Code Generation -> Line comment at first column 取掉勾选设置java文件模板
File -> Settings -> Editor -> File and Code Templates -> class -> includes设置git版本控制
File -> Settings -> Version Control -> Git -> Path to Git executable 选择git路径(如果没有安装git,使用命令sudo apt-get install git)设置maven构建环境
File -> Settings -> Build,Execution,Deployment -> Build Tools -> Maven -> Maven home directory 选择maven路径(如果没有安装maven,参考Ubuntu下安装Maven)设置Tomcat
File -> Settings -> Build,Execution,Deployment -> Application Servers -> 绿色+号 -> Tomcat Server -> 选择Tomcat的路径(如果没有安装Tomcat,参考Ubuntu下安装Tomcat)
IDEA Intellij小技巧和插件 IDEA Intellij使用教程