Eclipse使用技巧
来源:互联网 发布:网络兼容模式怎么设置 编辑:程序博客网 时间:2024/05/01 23:39
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
1.在源代码中快速跳转
Eclipse中的跳转甚至比VS.Net还方便,方法是按住Ctrl键,然后鼠标指向变量名,方法名,类名,就会出现链接,点击就可跳到定义处。
2.实时语法检查
编辑区右侧如果有红色小方块,直接点击就可跳到有错的行;黄色小方块是警告,可以忽略,但最好检查一下;如果某个函数尚未完成,要提醒自己注意怎么办?加上注释// TODO,右侧就会有蓝色小方块,提示你此处尚未完成。当一个源码的右侧没有任何提示时,说明这个文件已经完成了。
3.自动生成getter/setter方法
只需要申明protected,private类成员变量,然后在Package Explore中找到该类,右键点击,选择“Source”“Generate Getters and Setters”。
4.更改类名/变量名
如果涉及到多处修改,不要直接在源码中更改,在Package Explore中找到要改名的类或变量,右键点击,选择“Refactor”“Rename”,Eclipse会自动搜索所有相关代码并替换,确保不会遗漏或改错。
注:我用的版本是Eclipse 3.0
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- eclipse使用技巧:技巧汇总
- Eclipse使用技巧
- Eclipse使用技巧
- Eclipse 使用技巧
- Eclipse 使用技巧
- Eclipse使用技巧
- Eclipse使用技巧
- eclipse使用技巧
- Eclipse使用技巧
- Eclipse 使用技巧
- Eclipse使用技巧
- Eclipse使用技巧
- Eclipse使用技巧
- Eclipse使用技巧
- Eclipse使用技巧
- Eclipse使用技巧
- Eclipse使用技巧
- eclipse使用小技巧
- servlet生命周期
- 一种基于组件的跨WEB/手机/WINDOS/UNIX平台的多层开发
- SpringFramework(2)
- MSN机器人梦工厂(3)
- 软件过渡开发
- Eclipse使用技巧
- 在STRUTS中如何使用 标签
- log4j的配制及测试程序
- 如何成为一个成功的Jsp程序员?
- 用于较小数的 BigDecimal
- Java读取BMP格式图片(源代码,转)
- 业务流程定义语言规范总结
- Eclipse+JBoss+MySQL开发环境设置
- JDBC系列教程(一)---连接