idea常用配置
来源:互联网 发布:广州中名软件 编辑:程序博客网 时间:2024/06/09 18:52
Inspection 代码检查
在设置目录中,editor –> inspections用来配置各种代码检查以及警告。
- 开启import *提示
editor –> inspections –> java –> imports
勾选* import
- 工具类必须为final、不能含有public构造方法、必须有private构造方法
editor –> inspections –> java –> class structure
勾选utility class is not final
勾选utility class with public constructor
勾选utility class without private constructor
- equals()与hashCode()方法必须成对出现
editor –> inspections –> java –> probable bugs
勾选equals and hashcode() not paired
- 可序列化类没有声明serialVersionUID
editor –> inspections –> java –> Serialization issue
勾选Serializable class without 'serialVersionUID'
Code Style 代码风格
- else新起一行
editor –> code style –> java –> if() statement
勾选else on new line
force brace
选择always
- 方法参数过长自动换行
editor –> code style –> java –> method declarationparameters
选择wrap if long
- 禁用import *
editor –> code style –> java –> importsclass count to use import with *
填写500
names count to use static import with *
填写500
- 配置import顺序
editor –> code style –> java –> imports –> import layout
参考链接(stackoverflow.com)
IDE配置
- 自动import
editor –> general –> auto import
勾选optimize imports on the fly
勾选add unambiguous imports on the fly
- 编辑器显示行号
editor –> general –> apperance
勾选show line numbers
- 自动补全main函数
editor –> live templates –> other
右侧点击加号,如下图配置 - 去掉新文件自动添加的created by注释
editor –> file and code templates
找到需要修改的模板,按图中所示,将红框内内容替换为空行 - 版本控制显示修改文件及目录
version control
勾选show directories with changed descendants
0 0
- 【IDEA】IDEA常用配置
- idea常用配置
- IDEA常用配置
- IDEA常用配置
- IntelliJ IDEA 常用配置
- IDEA第三章----idea常用配置
- Intellij IDEA常用配置详解
- Intellij IDEA常用配置详解
- Intellij IDEA常用配置详解
- Intellij IDEA常用配置详解
- Intellij Idea常用配置设置
- Intellij IDEA常用配置详解
- Intellij IDEA常用配置详解
- IDEA 常用配置 和插件
- Intellij IDEA常用配置详解
- PHPSTORM/IntelliJ IDEA 常用 设置配置优化
- IntelliJ IDEA常用配置以及快捷键
- IntelliJ IDEA使用教程六 常用配置
- 通过sqoop增量传送oracle数据到hive
- php openssl rsa 加密解密应用
- java三大特性之————封装
- 20160630整理到cloudeye攻击的一些姿势
- Android中ListView分页加载数据
- idea常用配置
- RecyclerView--监测View是否可以沿着指定方向滑动
- STC双串口单片机无法烧写下载程序原因,普中开发箱,STC12C5A60S2
- Timus 1892 Morning in Koltsovo
- iOS向上滑动,导航栏颜色逐渐加深
- angularJS $resource与后台restapi的对应关系
- 初识JSP
- java调用MySQL的kettle资源库时的编码问题
- 如何高效的学习Android动画