Eclipse使用指南

 

Eclipse 使用指南
1       修改历史

Version
Change Time
 Author
Description
Effort Hours
0.1
2006-4-21
LevinSoft
基本框架
0.5
2006-4-22
LevinSoft
添加了cvs使用、常见问题
0.5
0.2
2006-5-8
LevinSoft
增加了cvs的使用技巧
0.1
1.0
2007-1-10
LevinSoft
Add code template
0.3
1.1
2007-8-16
LevinSoft
Eclipse ant 超时解决办法
0.1

2       介绍
本文主要内容包括: eclipse使用心得、快捷键的使用和使用建议、代码模版的配置、相关的插件地址。
3       使用心得
1.保持同eclipse一同进步。每次升级eclipse的时,可以查看帮中的what’s new? 可以获得最新实用的功能,有的可能你使用插件才能获得功能,通过新eclipse版本就可以解决。
2.和同事交流代码时,多观察同事的键盘操作。可能无形中就可以获得相关的开发技巧。
4       基本使用
4.1    常用的快捷键
它可以大大的增强您的开发效率,要想成为高手的必备技能之一。
对于一个仅仅知道几个快捷键的选手,不要急于一天就能掌握所有的操作。可以每天重点使用几个,对于一个java程序员,几周就可以熟练掌握。
1.可以用 Ctrl+shift+L可以查阅,它能增加巨大的效率。
2.Ctr+H:查找具体的类
3.F3 :等价于Ctr+被选中的某个单词
4. Ctrl+/:可以在选中一定的区域后,可以直接的全部加上注释。Ctrl + shift +/可以注释块。
5.Tab+shift:按钮可以跳tab距离。
6.全部选中+tab:可以向前跳置tab的距离。
7.F5和F6:是常用的调试按钮。非常的有用。
8.F4:在选中的类中可以查看类图的集成结构。
9.Shift+鼠标右键,可以选择一行,比直接的按住右键好用多了。
10.             Ctr + Shift + o organize import 非常的好用。
11.             Ctr + o Quick outline
12.             Ctr + Shift + e 在单独的窗口中。列出当前所有的文件,
13.             Ctr + T 查询调用该函数父函数。比F4好用。
14.             Alt + shift + R 重命名选中的函数  rename
15.             Ctr + F3 可以查看类
16.             Ctr + q 可以返回上次编辑的地方。节省很多时间。
17.             Atl + shift + c 可以对选中的函数进行重构 change method signature
18.             Ctr+M maxisize the active view and editor
19.             Alt+ shift + c 修改函数名称、参数等。
20.             Ctr + shift + c 给一行数据添加注释 使用起来比较方便
21.             Atl + shift + t 弹出重构的提示
22.             Alt + shift + v move
23.             Ctr + t 查看集成关系,可以方便的定位通过定位接口或实现类。
4.2    代码模板
可以导入或导出xml格式的文件。
4.2.1            Files
/**
 * FileName: ${file_name}
 */
4.2.2            Types
/**
  *
  * Copyright: Copyright (C) ${date}
  * Company:
  * @author <a href="thunder4393@gmail.com"/> 张乐雷
  * @date ${date} ${time}
  */
 
 
4.2.3             Methods
/**
  *
  * ${tags}
  * @author zhanglelei
  * @date ${date} ${time}
  */
4.2.4            Override Methods
/**
  *
  * ${tags}
  * @author zhanglelei
  * @date ${date} ${time}
  */
5       Eclipse中ant超时解决办法
现在当运行ant 构建工程时,一定要注意先修改jvm的参数。否则会ant不成功。显示内存不够的情况。
1. Ant超时解决办法
> 现在执行Ant任务时有时,有时会因为超时出错,请大家按照下面的方式配置,改变内存溢出的问题。>
> 2) Right click the build.xml file in your project and choose Run > Ant Build ...
> 3)Go to the JRE tab on the ant build property window.
> 4) Add your memory options to the VM arugmentsCode:
> -Xmx512M
> 5) Hit Run
NOTE :一定是要设置VM的参数,不是其他的部分。
6       插件地址
Eclipse 下载
EMF,GEF - Graphical Editor Framework,UML2,VE - Visual Editor
都在这里下载
http://www.eclipse.org/downloads/index.php
2  lomboz J2EE插件,开发JSP,EJB
http://forge.objectweb.org/projects/lomboz
3  MyEclipse J2EE开发插件,支持SERVLET/JSP/EJB/数据库操纵等
http://www.myeclipseide.com
4  Properties Editor  编辑java的属性文件,并可以自动存盘为Unicode格式
http://propedit.sourceforge.jp/index_en.html
5  Colorer Take  为上百种类型的文件按语法着色
http://colorer.sourceforge.net/
6  XMLBuddy 编辑xml文件
http://www.xmlbuddy.com
7  Code Folding  加入多种代码折叠功能(比eclipse自带的更多)
http://www.coffee-bytes.com/servlet/PlatformSupport
8  Easy Explorer  从eclipse中访问选定文件、目录所在的文件夹
http://easystruts.sourceforge.net/
9  Fat Jar 打包插件,可以方便的完成各种打包任务,可以包含外部的包等
http://fjep.sourceforge.net/
10  RegEx Test 测试正则表达式
http://brosinski.com/stephan/archives/000028.php
11  JasperAssistant 报表插件(要钱的哦~)
http://www.jasperassistant.com/
12  Jigloo GUI Builder JAVA的GUI编辑插件
http://cloudgarden.com/jigloo/
13  Profiler 性能跟踪、测量工具,能跟踪、测量B/S程序
http://sourceforge.net/projects/eclipsecolorer/
14  AdvanQas 提供对if/else等条件语句的提示和快捷帮助(自动更改结构等)
http://eclipsecolorer.sourceforge.net/advanqas/index.html
15  Log4E Log4j插件,提供各种和Log4j相关的任务,如为方法、类添加一个logger等
http://log4e.jayefem.de/index.php/Main_Page
17  Implementors 提供跳转到一个方法的实现类,而不是接口的功能(实用!)
http://eclipse-tools.sourceforge.net/implementors/
18  Call Hierarchy 显示一个方法的调用层次(被哪些方法调,调了哪些方法)
http://eclipse-tools.sourceforge.net/call-hierarchy/index.html
19  EclipseTidy 检查和格式化HTML/XML文件
http://eclipsetidy.sourceforge.net/
20  Checkclipse 检查代码的风格、写法是否符合规范
http://www.mvmsoft.de/content/plugins/checkclipse/checkclipse.htm
21  Hibernate Synchronizer Hibernate插件,自动映射等
http://www.binamics.com/hibernatesync/
22  VeloEclipse  Velocity插件
http://propsorter.sourceforge.net/方便的列出所有打开的Editor
http://editorlist.sourceforge.net/内存占用率的监视
http://cloudgarden.com/memorymanager/的GUI插件
http://www.swt-designer.com/支持Tomcat插件
http://www.sysdeo.com/eclipse/tomcatPlugin.html数据库插件
http://quantum.sourceforge.net/数据库插件
http://sourceforge.net/projects/dbedit可视化的数据库插件
http://www.azzurri.jp/en/software/index.jsp插件
http://hiberclipse.sourceforge.net插件
http://www.jamesholmes.com/struts/console/插件
http://easystruts.sourceforge.net插件
http://veloedit.sourceforge.net/代码整理插件
http://jalopy.sourceforge.net/包关系分析
http://andrei.gmxhome.de/jdepend4eclipse/links.html插件
http://springide-eclip.sourceforge.net/updatesite/可以产生xdoclet 的代码提示
http://beust.com/doclipse/
 
38  doclipse
 
37  Spring IDE Spring
 
36  JDepend
 
35  jalopy  
 
34  veloedit Velocity
 
33  easystruts Struts
http://www.binamics.com/hibernatesync
 
32  struts-console Struts
http://www.azzurri.jp/eclipse/plugins
 
31  hiberclipse hibernate
 
30  clay.core
 
29  Dbedit
 
27  XML Viewer
http://tabaquismo.freehosting.net/ignacio/eclipse/xmlview/index.html
 
28  quantum
 
26  TomcatPlugin  
 
25  swt-designer java 
 
24  MemoryManager  
 
23  EditorList
39  SQLExplorer,在Eclipse 中连接各种数据库进行操作使用
http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=124&threadID=31124
JSEclipse
插件介绍: JSEclipse 是个 Eclipse 下的免费 Javascript 脚本编辑器

subversion
版本控制,相当于 CVS
安装: http://subclipse.tigris.org/install.html
Name: Subclipse
URL:  http://subclipse.tigris.org/update_1.0.x


CSS Editor for Eclipse
http://csseditor.sourceforge.net/

FacesIDE
FacesIDE
是一个用于开发 JSF Eclispe 插件 . 它可以可视化编辑 faces-config.xml 文件并且提供代码编辑与校验 , 预览 JSF JSP 文件 .FacesIDE 包含 MyFaces 来作为 JSF 的实现
http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=FacesIDE

Eclipse SQLExplorer plugin
一个数据库管理插件
http://sourceforge.net/projects/eclipsesql

Poperties Editor
一个在编辑完成后可以将资源文件中的中文编码格式转换为 unicode 编码的插件,在开发国际化应用程序的时候非常有用
http://propedit.sourceforge.jp/eclipse/updates/
Eclipse加速插件KeepResident
http://suif.stanford.edu/pub/keepresident/
开发插件,支持SERVLET/JSP/EJB/数据库操纵等
www.myeclipseide.com 编辑java的属性文件,并可以自动存盘为Unicode格式
http://propedit.sourceforge.jp/index_en.html 为上百种类型的文件按语法着色
http://colorer.sourceforge.net/ 编辑xml文件
www.xmlbuddy.com 加入多种代码折叠功能(比eclipse自带的更多)
http://www.coffee-bytes.com/servlet/PlatformSupport 从eclipse中访问选定文件、目录所在的文件夹
http://easystruts.sourceforge.net/ 打包插件,可以方便的完成各种打包任务,可以包含外部的包等
http://fjep.sourceforge.net/ 测试正则表达式
http://brosinski.com/stephan/archives/000028.php 报表插件(强,要钱的)
http://www.jasperassistant.com/ JAVA的GUI编辑插件
http://cloudgarden.com/jigloo/ 性能跟踪、测量工具,能跟踪、测量BS程序
http://sourceforge.net/projects/eclipsecolorer/ 提供对if/else等条件语句的提示和快捷帮助(自动更改结构等)
http://eclipsecolorer.sourceforge.net/advanqas/index.html 插件,提供各种和Log4j相关的任务,如为方法、类添加一个logger等
http://log4e.jayefem.de/index.php/Main_Page 插件
http://sourceforge.net/projects/vssplugin 提供跳转到一个方法的实现类,而不是接中的功能(实用!)
http://eclipse-tools.sourceforge.net/implementors/ 显示一个方法的调用层次(被哪些方法调,调了哪些方法)
http://eclipse-tools.sourceforge.net/call-hierarchy/index.html 检查和格式化HTML/XML文件
http://eclipsetidy.sourceforge.net/ 检查代码的风格、写法是否符合规范
http://www.mvmsoft.de/content/plugins/checkclipse/checkclipse.htm 插件,自动映射等
http://www.binamics.com/hibernatesync/ 插件
http://springide.org/updatesite/
 
spring updatesite
 
Hibernate Synchronizer Hibernate
 
Checkclipse
 
EclipseTidy
 
Call Hierarchy
 
Implementors  
 
VSSPlugin VSS
 
Log4E     Log4j
 
AdvanQas
 
Profiler
 
Jigloo GUI Builder
 
JasperAssistant
 
RegEx Test
 
Fat Jar
 
Easy Explorer 
 
Code Folding 
 
XMLBuddy
http://propedit.sourceforge.jp/eclipse/updates/
 
Colorer Take 
 
Properties Editor 
 
MyEclipse  J2EE
自动反编译class,安装后要设定class文件缺省关联到jode
http://www.technoetic.com/eclipse/update

jigloo swing/sw设计工具,里面自带的form/anchor布局很好用!
http://cloudgarden.soft-gems.net/update-site/
jinto的资源文件编辑工具,同时编辑多种语言,而且自动转换成iso8859-1编码。很好用!
http://www.guh-software.de/eclipse/
 


Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1355453
 
  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值