1、alt + shift + j : 给方法、类 加注释
2、alt + shift + s : 直接弹出source 菜单(重写get set方法等操作)
3、ctrl + alt + 下 : 复制当前行到下一行 (复制属性 或者 相同的代码只是要修改一个地方的时候 很有用)
4、工程上点右键 - properties - myeclipse - web 其中 web content-root :是修改应用名的地方,不写的话就是应用名为 ROOT
5、 <!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> Ctrl+T :列出一个类的继承结构,对接口尤其有用,可以查看有哪些实现类。用来查看有哪些子类非常方便。
6、 <!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> F3 太常用了 通过类型 打开一个类 ,就是你把光标定位到一个类型上,然后F3就进入该类的代码里了。
7、ctrl + H 打开搜索 这个搜索很强大,可以按照各种位置搜索。
8、ctrl + M 把编辑框放大,和双击标题是一样的功能。
refactor(重构)菜单里,有很多很好用的功能:
rename 重命名 move 移动 别小看这两个重构功能,工程大的时候移动一个类非常麻烦,用这个就解决了,引用的地方全帮你改了。
改变方法签名 Change Method Signature
提取接口 Extract Interface
方法上移(子类)Pull Up
方法下移(父类)Push Down
上升引用类型Generalize Type
提取方法Extract Method
重构中的其他功能:http://blog.163.com/tjbws/blog/static/4284307020097299255653/