返回刚才的窗口
Alt+左箭头
段注释
Alt+shift+j(鼠标选到方法名)
继承关系
Ctrl+T(快速看类的继承关系)
自动引包:
Ctrl+shift +O
搜索
Ctrl+H Ctrl+F
/* */注释
Ctrl+shift+/ (取消用+\)
/**
自动生成javadoc文档注释
手动提示
Alt+/
代码对齐
Ctrl+shift+f (format)
修改 Window->preferences->java->code style->
第三方jar包
拉入project,右键build path
自动提示:
Window->preferences->java->editor->content assist
数据库试图
Window->show vie->data source explorer
条件断点(非常有用)
对断定右键 property
debug模式下观察参数变化
source
《Refactoring:improving the design of existing code 》
重构
方法抽取 Extract Method
重命名 Rename
内联 inline (简单函数 无递归)
常量抽取 extract constant
抽取局部变量 extract local variable
包装字段 encapsulate field (source setter and getter )
接口抽取 extract interface
设置workspace
File->switch workspace
查看相应类的源代码
Navigate –>Open type
查看父类实现
行号旁边的向上箭头
查看类型层次结构
右键->open type hierarchy
查看方法被调用
右键->open call hierarchy
模板代码
Window->preferences 搜索 template 在java下
页面编码设置
文件右键->properties
原文:http://www.cnblogs.com/linkarl/p/4892813.html