idea工具快捷键设置(按照eclipse风格)
基本设置
- 风格:appearance->look and feed 选择windows
- 字体设置:appearance courier new
- 通用设置:在Editor->appearance设置
- show linenumber
- 设置鼠标位置在一行的开头:去掉Editors 的Vertual Space -> Allow placement of ...的勾选
- 【展示泛型里面的类型】将editor->code folding中的选项都去掉勾选
反应慢的设置
- idea会自动优化java类的import,会消耗一定的时间导致感觉反应比较慢,可以在editor->auto import 中去掉相关选项
- idea光标会设置一个闪动频率,默认是500ms,这时会让人产生反应迟缓的感觉,可以在editor ->apparence中将caret blinking去掉勾选或者时间设短。我是直接去掉了
- 在debugger中有选项在hotspot reload classes时会make工程,可以去掉这个勾选:debugger->hotswap
常用快捷键
- 格式化代码:CTRL+F
- 重命名(F2):refactor ->rename...
- 最大化编辑窗口(ctrl+M):windows -> active tool window -> hide all tool windows
- 全文搜索(ctrl+H):edit->find->search structurally
- 关闭所有窗口(ctrl+shift+w)
- 查看最近打开的文件:ctrl+e
debug代码
- 单步(F6): Step Over
- 进入代码执行(F5):Step into
- 跳过断点(F8):Resume Programe
代码提示(在code->completion)
- basice/smartType/class name:改成Alt+Slash
java
- 查找类(CTRL+SHIFT+T):main menu ->navigate-> class...
- 查找类方法(CTRL + O):main menu ->navigate->File Structure
- getter/setter(ctrl+shift+s):code->genarate...
- 查找类方法被使用(ctrl+shift+G):editor->find->find useage
- 修改方法同时把关联调用的点修改(ctrl+alt+r):main menu ->refactor->change signature...
- 类的属性按照=对齐设置:勾选 code style -> java -> filed groups
svn工具
- 每次提交后去掉Code Anaylze:在提交的弹出层右侧有个before commit选项,去掉勾选即可
- 提交修改的代码(ctrl+K):修改check in的快捷键
代码提示
- 代码提示去掉大小写:editor->code complication ->case sencitive complication 选择none
- idea中如创建一个类变量,输入首字母后会有根据类建议的变量名,这时需要使用TAB建来完成选择,而使用惯了eclipse的ALT+SLASH后及其不习惯,这时只需要在Editor Actions ->Choose lookup item replace中增加ALT+SLASH就可以了