####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-> General
- 设置导入包时不使用*来匹配
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) - 安装常用插件
File -> Settings -> Plugins -> Browse repositories
- CodeGlance 类似Sublime右侧的代码地图
- Maven Helper Maven依赖查看,jar包冲突解决
- Lombok Plugin 使用Lombok需要安装的插件
- free mybatis plugin 定位mybatis中mapper接口里的方法对应的Mapper.xml的位置
- Alibaba Java Coding Guidelines 阿里巴巴的 java code 代码规范
- Restfultookit spring mvc 根据 url 查找到实现的位置
- Key promoter 根据鼠标的操作提示对应的快捷键
IDEA Intellij小技巧和插件 IDEA Intellij使用教程
来源:oschina
链接:https://my.oschina.net/u/565871/blog/405027