myeclipse使用技巧

来源:互联网 发布:mac os x 10.8dmg 编辑:程序博客网 时间:2024/06/13 02:31

1.自动生成set,get方法

右键-source-Generate Getters and Setters

快捷键:alt+shift+s+r

2.代码格式化

右键—source—format

3.代码自动补全

代码完成ALT+/:用于当输入类的方法或类名时,如按了其他键自动提示消失,可按ALT+/自动补充完整,如输入String+ALT+/,会提示StringBuff等已String开头的类或方法。

4.myeclipse修改控制台字体大小

Window>Preferences>General>Apperance>Colors and Fonts>Debug中的那个console

5.项目中字体大小

Window>Preferences>General>Apperance>Colors and Fonts>basic>Aa Text Font

6.myeclipse显示行数

Window>Preferences>General>Editors>Text Editors >勾选Show line numbers

7.myeclipse代码提示功能设置

Window>Preferences>java>Editor>Content Assist

第一行200 ,代表提示的反应时间也就是200毫秒!直接修改数字,然后点击Apply,然后OK就行了!

第二行代如果敲下 .  或 s 或 p 会自动弹出提示代码信息,你也可以自己设置打出26字母都有提示,然后点击Apply,然后OK就行了!
第三行是java注释的提示代码,不建议修改!

8.myeclipse的workspace更改

File>switch workspace --other

会自动重启

9.system.out.println()快捷输入

 先输入sysout或syso 然後按alt+/ 



附:myeclipse使用大全网址 http://www.zhuantilan.com/zt/myeclipse/




原创粉丝点击