0.经常使用用设置html
①代码提示不区分大小写: editor -> general -> code completion # case sensitive completion 设置成nonejava
②在编辑器状态栏的最右下角处理,能够调整代码检查等级,none:不检查....,Inspections:最严格的检查。在编辑大文件时可用到缓存
③编码设置: editor -> file encodings # ide encoding & project encoding & properties files app
④ 查询idea的内存使用状况:appearance & behavior -> apperance # show memory indicator。在编辑器状态栏的最右下角能够看到,而且点击后能够进行内存回收jvm
⑤设置得注解时跟在代码的前面:editor -> code style ->java # code generation # line comment at first column 去掉勾编辑器
⑥编辑运行时默认会打开上次的项目,改为让本身选择:apperance & behavior -> system settings # reopen last project on startup 去掉勾(project opening 能够选择打开一个新项目时窗口的变化)ide
⑦设置文件打开的个数:editor -> general -> editor tabs # tab limit ui
⑧设置方法分割线:editor -> general -> apperance # show method separators 打勾编码
⑨注释自动提示:editor -> general #other # show quick documentation on mouse move 打勾idea
⑩弱警告颜色加深:editor -> colors & fonts -> general -> weak warning
* 不检查注释的语法错误: editor -> inspections #javadoc issues 的勾去掉
11. setting->Inspections->Serialization issues,将serialzable class without "serialVersionUID"打上勾;
12. setting -> editor -> code style -> line separator 回车类型
13. setting -> editor -> code style -> java -> Wrapping and Braces -> Group declarations -> Align fields in columns 打勾
1.代码提示设置
①去掉英文拼写检查: editor -> inspections # spelling # typo 去掉勾
②去掉重复代码检查:editor -> inspections # duplicated code 去掉勾
2.代码模板添加
editor -> live templates
添加 template group 可命名为java 以后添加 main 模板 syso模板
3.html 和 xml 标签背景去除
editor -> colors & fonts -> html # tag
4. idea 配置文件修改 idea.properties
安装目录 -> bin -> idea.properties
①idea自定义配置文件 idea.config.path=F:/360SycDir/idea_config/config
②索引路径 idea.system.path = F:/360SycDir/idea_config/system
③idea.max.intellisense.filesize=2500,该属性主要用于提升在编辑大文件时候的代码帮助。IntelliJ IDEA 在编辑大文件的时候仍是很容易卡顿的。
④idea.cycle.buffer.size=1024,该属性主要用于控制控制台输出缓存。有遇到一些项目开启不少输出,控制台很快就被刷满了没办法再自动输出后面内容,这种项目建议增大该值或是直接禁用掉,禁用语句 idea.cycle.buffer.size=disabled。
5. jvm参数设置
安装目录 -> bin ->idea64.exe.vmoptions (若是是32位,就设置 idea.exe.vmoptions )
①{user}的变量名设置 -Duser.name=Canaan
②-Xms128m -Xmx750m
6.编译设置
编译时堆的大小设置,省得出现OutOfMemoryError,或者你以为make 或build很慢
build,execution,deployment -> compiler # build process heap size
7.版本控制器设置
① 当子目录有修改时上级目录也是显示变更的标识 version control # show directories with changed descendants
② 添加提交时忽略的文件 version control -> ignored files
8.去掉没必要要的插件
plugin -> 不要的插件去掉勾就好了
9.快捷键设置
① 代码提示(ctrl+空格)修改: keymap 查询关键字 basic
② 回到上次编辑的地方(ctrl+alt +左右方向键) :keymap 查询关键字 navigator ,修改Back和Forward