eclipse 开发常用总结

1.查看错误: ctrl+1

2.智能补全: alt + /

3.增强自动补全

在Eclipse中,从Window -> preferences -> Java -> Editor -> Content assist -> Auto-Activation下,我们可以在"."号后面加入我们需要自动提示的首字幕,比如"abc",可以把26个字母的大小写全部加上(.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_).

http://www.cnblogs.com/sunjie21/archive/2012/06/28/2567463.html

4.导入外部 android framework class.jar包:

右击已建工程->buildpath->addlibrary->user library->new->起名:test, system library选中,保证eclipe boot时加载->add the external jar

->返回 选择finish.

此外,值得注意的是,如果替换之前已添加的,直接删除class.jar无效,要直接把test删了,再重新添加。

10.19补充

导入外部jar包无效,要查看导入jar是否位于系统提供的jar包之上。如果不是,build path -> configure path -> order and export ->将选中的jar包top

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章