---
title: "Eclipse快捷键大全 (转) "
author: "scorpio"
date: "2007-03-27T11:03:21Z"
tags: []
slug: "eclipse"
draft: false
lastmod: "2007-03-27T11:03:21Z"
id: 65784
url: "https://scorpio.iteye.com/blog/65784"
---

## Eclipse快捷键大全

Eclipse快捷键大全  
Ctrl+1 快速修复(最经典的快捷键,就不用多说了)  
Ctrl+D: 删除当前行

Ctrl+Alt+↓ 复制当前行到下一行(复制增加)  
Ctrl+Alt+↑ 复制当前行到上一行(复制增加)

Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)  
Alt+↑ 当前行和上面一行交互位置(同上)  
Alt+← 前一个编辑的页面  
Alt+→ 下一个编辑的页面(当然是针对上面那条来说了)

Alt+Enter 显示当前选择资源(工程,or 文件 or文件)的属性

Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后)  
Shift+Ctrl+Enter 在当前行插入空行(原理同上条)

Ctrl+Q 定位到最后编辑的地方  
Ctrl+L 定位在某行 (对于程序超过100的人就有福音了)  
Ctrl+M 最大化当前的Edit或View (再按则反之)  
Ctrl+/ 注释当前行,再按则取消注释  
Ctrl+O 快速显示 OutLine  
Ctrl+T 快速显示当前类的继承结构  
Ctrl+W 关闭当前Editer  
Ctrl+K 参照选中的Word快速定位到下一个  
Ctrl+E 快速显示当前Editer的下拉列表(如果当前页面没有显示的用黑体表示)

Ctrl+/(小键盘) 折叠当前类中的所有代码

Ctrl+×(小键盘) 展开当前类中的所有代码

Ctrl+Space 代码助手完成一些代码的插入(但一般和输入法有冲突,可以修改输入法的热键,也可以暂用Alt+/来代替)

Ctrl+Shift+E 显示管理当前打开的所有的View的管理器(可以选择关闭,激活等操作)

Ctrl+J 正向增量查找(按下Ctrl+J后,你所输入的每个字母编辑器都提供快速匹配定位到某个单词,如果没有,则在stutes line中显示没有找到了,查一个单词时,特别实用,这个功能Idea两年前就有了)

Ctrl+Shift+J 反向增量查找(和上条相同,只不过是从后往前查)

Ctrl+Shift+F4 关闭所有打开的Editer

Ctrl+Shift+X 把当前选中的文本全部变味小写

Ctrl+Shift+Y 把当前选中的文本全部变为小写

Ctrl+Shift+F 格式化当前代码

Ctrl+Shift+P 定位到对于的匹配符(譬如{}) (从前面定位后面时,光标要在匹配符里面,后面到前面,则反之)

下面的快捷键是重构里面常用的,本人就自己喜欢且常用的整理一下(注:一般重构的快捷键都是Alt+Shift开头的了)

Alt+Shift+R 重命名 (是我自己最爱用的一个了,尤其是变量和类的Rename,比手工方法能节省很多劳动力)

Alt+Shift+M 抽取方法 (这是重构里面最常用的方法之一了,尤其是对一大堆泥团代码有用)

Alt+Shift+C 修改函数结构(比较实用,有N个函数调用了这个方法,修改一次搞定)

Alt+Shift+L 抽取本地变量( 可以直接把一些魔法数字和字符串抽取成一个变量,尤其是多处调用的时候)

Alt+Shift+F 把Class中的local变量变为field变量 (比较实用的功能)

Alt+Shift+I 合并变量(可能这样说有点不妥Inline)  
Alt+Shift+V 移动函数和变量(不怎么常用)  
Alt+Shift+Z 重构的后悔药(Undo)

**Eclipse及其插件介绍和下载**

0.Eclipse下载  
EMF,GEF - Graphical Editor Framework,UML2,VE - Visual Editor都在这里下载  
[http://www.eclipse.org/downloads/index.php](http://www.eclipse.org/downloads/index.php)  
   
0.5.lomboz J2EE插件,开发JSP,EJB  
[http://forge.objectweb.org/projects/lomboz](http://forge.objectweb.org/projects/lomboz)

1.MyEclipse J2EE开发插件，支持SERVLET/JSP/EJB/数据库操纵等  
[http://www.myeclipseide.com](http://www.myeclipseide.com/)  
   
2.Properties Editor  编辑java的属性文件，并可以自动存盘为Unicode格式  
[http://propedit.sourceforge.jp/index\_en.html](http://propedit.sourceforge.jp/index_en.html)  
   
3.Colorer Take  为上百种类型的文件按语法着色  
[http://colorer.sourceforge.net/](http://colorer.sourceforge.net/)  
   
4.XMLBuddy 编辑xml文件  
[http://www.xmlbuddy.com](http://www.xmlbuddy.com/)  
   
5.Code Folding  加入多种代码折叠功能（比eclipse自带的更多）  
[http://www.coffee-bytes.com/servlet/PlatformSupport](http://www.coffee-bytes.com/servlet/PlatformSupport)  
   
6.Easy Explorer  从eclipse中访问选定文件、目录所在的文件夹  
[http://easystruts.sourceforge.net/](http://easystruts.sourceforge.net/)  
   
7.Fat Jar 打包插件，可以方便的完成各种打包任务，可以包含外部的包等  
[http://fjep.sourceforge.net/](http://fjep.sourceforge.net/)  
   
8.RegEx Test 测试正则表达式  
[http://brosinski.com/stephan/archives/000028.php](http://brosinski.com/stephan/archives/000028.php)  
   
9.JasperAssistant 报表插件（强，要钱的）  
[http://www.jasperassistant.com/](http://www.jasperassistant.com/)  
   
10.Jigloo GUI Builder ＪＡＶＡ的ＧＵＩ编辑插件  
[http://cloudgarden.com/jigloo/](http://cloudgarden.com/jigloo/)  
   
11.Profiler 性能跟踪、测量工具，能跟踪、测量ＢＳ程序  
[http://sourceforge.net/projects/eclipsecolorer/](http://sourceforge.net/projects/eclipsecolorer/)  
   
12.AdvanQas 提供对if/else等条件语句的提示和快捷帮助（自动更改结构等）  
[http://eclipsecolorer.sourceforge.net/advanqas/index.html](http://eclipsecolorer.sourceforge.net/advanqas/index.html)  
   
13.Log4E Log4j插件，提供各种和Log4j相关的任务，如为方法、类添加一个logger等  
[http://log4e.jayefem.de/index.php/Main\_Page](http://log4e.jayefem.de/index.php/Main_Page)  
   
14.VSSPlugin VSS插件  
[http://sourceforge.net/projects/vssplugin](http://sourceforge.net/projects/vssplugin)  
   
15.Implementors 提供跳转到一个方法的实现类，而不是接中的功能（实用!）  
[http://eclipse-tools.sourceforge.net/implementors/](http://eclipse-tools.sourceforge.net/implementors/)  
   
16.Call Hierarchy 显示一个方法的调用层次（被哪些方法调，调了哪些方法）  
[http://eclipse-tools.sourceforge.net/call-hierarchy/index.html](http://eclipse-tools.sourceforge.net/call-hierarchy/index.html)  
   
17.EclipseTidy 检查和格式化HTML/XML文件  
[http://eclipsetidy.sourceforge.net/](http://eclipsetidy.sourceforge.net/)  
   
18.Checkclipse 检查代码的风格、写法是否符合规范  
[http://www.mvmsoft.de/content/plugins/checkclipse/checkclipse.htm](http://www.mvmsoft.de/content/plugins/checkclipse/checkclipse.htm)  
   
19.Hibernate Synchronizer Hibernate插件，自动映射等  
[http://www.binamics.com/hibernatesync/](http://www.binamics.com/hibernatesync/)  
   
20.VeloEclipse  Velocity插件  
[http://propsorter.sourceforge.net/](http://propsorter.sourceforge.net/)  
   
21.EditorList 方便的列出所有打开的Editor  
[http://editorlist.sourceforge.net/](http://editorlist.sourceforge.net/)  
   
22.MemoryManager 内存占用率的监视  
[http://cloudgarden.com/memorymanager/](http://cloudgarden.com/memorymanager/)  
   
23.swt-designer java的GUI插件  
[http://www.swt-designer.com/](http://www.swt-designer.com/)  
   
24.TomcatPlugin 支持Tomcat插件  
[http://www.sysdeo.com/eclipse/tomcatPlugin.html](http://www.sysdeo.com/eclipse/tomcatPlugin.html)  
   
25.XML Viewer  
[http://tabaquismo.freehosting.net/ignacio/eclipse/xmlview/index.html](http://tabaquismo.freehosting.net/ignacio/eclipse/xmlview/index.html)  
   
26.quantum 数据库插件  
[http://quantum.sourceforge.net/](http://quantum.sourceforge.net/)  
   
27.Dbedit 数据库插件  
[http://sourceforge.net/projects/dbedit](http://sourceforge.net/projects/dbedit)  
   
28.clay.core 可视化的数据库插件  
[http://www.azzurri.jp/en/software/index.jsp](http://www.azzurri.jp/en/software/index.jsp)  
[http://www.azzurri.jp/eclipse/plugins](http://www.azzurri.jp/eclipse/plugins)  
   
29.hiberclipse hibernate插件  
[http://hiberclipse.sourceforge.net](http://hiberclipse.sourceforge.net/)  
[http://www.binamics.com/hibernatesync](http://www.binamics.com/hibernatesync)  
   
30.struts-console Struts插件  
[http://www.jamesholmes.com/struts/console/](http://www.jamesholmes.com/struts/console/)  
   
31.easystruts Struts插件  
[http://easystruts.sourceforge.net](http://easystruts.sourceforge.net/)  
   
32.veloedit Velocity插件  
[http://veloedit.sourceforge.net/](http://veloedit.sourceforge.net/)  
   
33.jalopy 代码整理插件  
[http://jalopy.sourceforge.net/](http://jalopy.sourceforge.net/)  
   
34.JDepend 包关系分析  
[http://andrei.gmxhome.de/jdepend4eclipse/links.html](http://andrei.gmxhome.de/jdepend4eclipse/links.html)  
   
35.Spring IDE Spring插件  
[http://springide-eclip.sourceforge.net/updatesite/](http://springide-eclip.sourceforge.net/updatesite/)  
   
36.doclipse 可以产生xdoclet 的代码提示  
[http://beust.com/doclipse/](http://beust.com/doclipse/)

**Eclipse插件大全下载**

```


这里有比较全的eclipse插件下载，E文不错的可以去看看，应该能找到你需要的东西。



http://www.eclipse-plugins.info/eclipse/plugins.jsp;jsessionid=474944821E463102785EFCB59F941256

 

 

 Eclipse 插件集锦 



    XML Schema Infoset Model (XSD) 

    功能：XML Schema Infoset Model 是个参考库提供用于测试，创建或者修改 W3C XML Schema 的 API。 

    主页：http://www.eclipse.org/xsd/ 



    Graphical Editing Framework 

    功能：这个插件允许开发者快速开发图形编辑器。 

    主页：http://www.eclipse.org/gef/ 



    Eclipse Modeling Framework (EMF) 

    功能：EMF是一个建模框架和基于结构化数据模型的代码生成工具。它能够将按照约定所进行描述的XML和其它EMF 

 

    工具产生或运行时支持一套JAVA类模型、一套用于查看和处理模型操作的接口类。这套模型可以用包含注释的JAVA代码、XML文档或者用ROSE之类的建模工具所制作的模型导成EMF。最重要的是，EMF提供其它基于EMF的工具及应用程序的基础协作平台。 

    主页：http://www.eclipse.org/emf/ 



    Eclipse Web Tools Platform (WTP) 

    版本：1.0 

    支持的 Eclipse 版本： 2.1 & 3.0 

    使用证书： Free 

    开发状况： Beta 

    公司： eclipse.org 

    功能：包含了 HTML , javascript , CSS , JSP , SQL , DTD , XSD & WSDL 编辑器，提供图形化的 XSD & WSDL 编辑器，J2EE 工程构建，建模，发布。Web service 向导数据库访问和查询工具，五星级插件！强烈推荐。 

    主页：http://www.eclipse.org/webtools/index.html 



    Lomboz 

    版本：Build-20050526 

    开发状况： 5 - Production/Stable 

    使用协议：GNU Lesser General Public License (LGPL) 

    功能：Lomaz 是著名的 eclipse 的 J2EE 开发插件，它使用了以下开源技术：Jasper，Xdoclet，Axis 和 Ant，完全支持编码，发布，测试和调试的开发环节。 

    主页：http://forge.objectweb.org/projects/lomboz 



    Myeclipse 

    版本：3.8.4 

    支持的 Eclipse 版本： 2.1 & 3.0 

    使用证书：commerce 

    开发状况：stable 

    公司： Genuitec, LLC 

    功能：要钱的东西，不过是最强悍的 J2EE 开发插件。可视化的 JSF 和 Struts 开发，XML 编辑器，Hibernate 支持，UML建模，应用服务器连接，支持 EJB 开发，同 步发布 JSP （不必发布整个应用程序）…… 非常强大的工具，使用一下就能体会到了 : ) 



    Sysdeo Eclipse Tomcat Launcher plugin 

    版本：3.1 Beta 

    支持的 Eclipse 版本： 2.1 & 3.0 

    使用证书： Free 

    开发状况： Beta 

    公司： Sysdeo 

    功能：在Elipse中启动停止重启Tomcat ,注册Tomcat 进程到 Eclipse 调试器创建 WAR 文件把 Java 工程添加到 Tomcat Classpath 中设置 Tomcat JVM 参数，Classpath 和 bootclasspath把 Tomcat 工程导出为 WAR 文件选择 Tomcat 配置文件 

    插件主页：http://www.eclipse-plugins.info/eclipse/index.jsp 



    JavaScript Editor 

    版本：0.0.9b 

    支持的 Eclipse 版本： 2.1 & 3.0 

    使用证书： Free CPL 

    开发状况： Beta 

    公司： N/A 

    功能：Javascript 编辑，提供了代码高亮，自动完成和内容纲要的功能。 

    插件主页：http://jseditor.sourceforge.net/ 



    CSSEditor 

    版本：0.0.4 

    支持的 Eclipse 版本： 2.1 & 3.0 

    使用证书： Free CPL 

    开发状况： Beta 

    公司： N/A 

    功能：代码高亮，内容提示，纲要栏显示 CSS 规则，输入时显示错误。 

    主页：http://csseditor.sourceforge.net/
```

 

Exadel Studio  
    版本：2.5   
    支持的 Eclipse 版本： 3.0  
    使用证书： Free CPL  
    开发状况： Beta  
    公司： N/A  
    功能：支持 JSF，Struts，JSP 编辑（支持2.0），Spring Framework，Hibernate，数据库浏览，图形化的属性编辑器，CSS 编辑器，JavaScript 编辑器，图像浏览，XSD 编辑，支持 XML Schema，支持超过 20 种应用服务器的发布……功能非常强大。

    Struts Console  
    版本：4.8  
    支持的 Eclipse 版本： ALL  
    使用证书： Free   
    开发状况： stable  
    公司： N/A  
    功能：支持 \*.tld文件，Struts 1.0 － 1.2 配置文件， Tiles配置文件， Validator 1.0 和 1.1配置文件，支持主流的 Java IDEs。  
    主页：[http://www.jamesholmes.com/struts/console/](http://www.jamesholmes.com/struts/console/)

    Faces Console  
    版本：1.7  
    支持的 Eclipse 版本： ALL  
    使用证书： Free  
    开发状况： stable  
    公司： N/A   
    功能：完全支持 JSF 配置文件，支持 JSP Tag Library 文件，支持主流的 Java IDEs。  
    主页：[http://www.jamesholmes.com/JavaServerFaces/console/](http://www.jamesholmes.com/JavaServerFaces/console/)

    HTML Tidy Eclipse Plug-in  
    版本：1.2.1  
    支持的 Eclipse 版本： 2.1 & 3.0  
    使用证书： Free CPL  
    开发状况： Beta  
     公司： N/A  
    功能：格式化和校验 (X)HTML 和 XML 代码。本身并不提供编辑器。  
    主页：[http://eclipsetidy.sourceforge.net/](http://eclipsetidy.sourceforge.net/)

    Eclipse HTML Editor Plugin  
    版本：N/A  
    支持的 Eclipse 版本： 2.1 & 3.0  
    使用证书： Free CPL  
    开发状况： Beta  
    公司： N/A  
    功能： Eclipse HTML Editor 是 HTML/JSP/XML 编辑插件，HTML/JSP/XML/CSS 高亮，HTML/JSP 预览JSP/XML 校验  
Contents 帮助(HTML Tags/Attributes, XML based on DTD and JSP taglib and more) 创建 HTML/JSP/XML 文件向导代码折叠  
图片浏览CSS 代码完成。  
    主页：[http://amateras.sourceforge.jp/cgi-bin/fswiki\_en/wiki.cgi?page=EclipseHTMLEditor](http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor)

    PHPeclipse（PHP Development Toolkit ）   
    版本：N/A  
    支持的 Eclipse 版本： 3.0  
    使用证书： Free CPL  
    开发状况： Beta  
    公司： N/A  
    功能：Eclipse 的 PHP 开发环境，支持代码高亮和代码自动完成，预览 PHP 页面。可以在eclipse中控制 apache，mysql 的启动，停止和重启。功能强大！  
    主页：[http://www.phpeclipse.de/tiki-view\_articles.php](http://www.phpeclipse.de/tiki-view_articles.php)

    XMLBuddy  
    版本：N/A  
    支持的 Eclipse 版本： 3.0  
    使用证书： Free & commerce  
    开发状况： stable  
    公司： N/A  
    功能：这是个免费版本，很好用，试试就知道了。  
    主页：[http://www.xmlbuddy.com/](http://www.xmlbuddy.com/)

    Doclipse  
    版本：N/A  
    支持的 Eclipse 版本： 3.0  
    使用证书： Free  
    开发状况： stable  
    公司： N/A  
    功能：看名字就知道了，在 eclipse 中使用 javadoc 标签的辅助工具。  
    主页：[http://www.beust.com/doclipse/](http://www.beust.com/doclipse/)

    Jadclipse  
    版本：2.06  
    支持的 Eclipse 版本： 所有  
    使用证书： Free  
    开发状况： stable  
    公司： N/A  
   功能：很棒的工具，可以在 eclipse 中直接反编译 class 文件！