`

eclipse使用整理

阅读更多

原写于2012--03-08

 

一、常用快捷键

 

1.常用快捷键

- crtl + h 查找内容

- ctrl + shift + r 快速打开资源文件

- ctrl + shift + t 快速打开类文件

- alt + shift + o  快速打开 '选中相同词,出现阴影'

- ctrl + t 快速打开方法

2.设置快捷键

preferences -> search keys

如:设置自动生成set/get方法为,ctrl+shift+g

 

二、插件

 

请务必阅读:

http://wiki.eclipse.org/FAQ_How_do_I_install_new_plug-ins%3F (为什么推荐使用eclipse update manager) 

http://www.venukb.com/2006/08/20/install-eclipse-plugins-the-easy-way/ (主要讲解'manual install'安装 方式)

 

1.插件安装方式

1.1 在线安装

官网wiki写的很清楚,优势:1.插件之间依赖管理、版本兼容性管理  2.如同你在Windows安装软件一样,当你不需要的时候可以通过update manage很容易的卸载;当你安装更多的plguin时,更容易管理。

eclipse wiki对manual install的看法:This obviously is a more dangerous approach, as no certification takes place about the suitability of the plug-in; it may rely on other plug-ins not available in your installation. In the case of compatibility conflicts, you won’t find out until you use the plug-in that it might break.

可惜的是,很多时候网络的情况不是很理想,尝试很多遍后,依然失败;这是促使manual install根本的原因。  

1.2 手动安装

a、第一种方式:下载plugin到本地,解压后复制features、plugin到%eclipse_home%下对应的目录

如此图 http://static.flickr.com/75/219742315_9ee663e2c8_o.png

优势:绝对简单;缺点:正好是通过update manager安装的优点,插件之间的依赖、版本兼容性,以及后续的管理,都需要手动操作。

b、第二种方式:通过.link的方式,解决'后续管理问题'

b-1、eclipse目录创建 links 目录

b-2、创建对应的.link文件,如:subversive.link

b-3、创建subversive/eclipse/,拷贝features、plugin到此目录

b-4、修改subversive.link文件,如:path=E:/dev/eclipse-t/thrid-plugins/subversive

b-5、重启eclipse(重启后,发现要使用svn,必须安装subversive connector;验证手动安装的缺点)

c、提示:

c-1、手动安装插件时,务必仔细阅读,此插件的先前条件(否则出问题,很难排查)。如:m2eclipse先决条件subeclipse、mylyn。

或 “Pre-requisite: an Eclipse version including Java Support (e.g. with the JDT : Java Development Tools, as in Eclipse For Java Developers, Eclipse For RCP/RAP developers, Eclipse for JavaEE developers, etc.)” http://code.google.com/p/counterclockwise/wiki/Documentation#Install_Counterclockwise_plugin

c-2、eclipse 手动安装plugin,.link文件的path路径 必须使用绝对路径

 

总结:对eclipse插件安装,首先推荐update manager;仅当网络环境不允许时,安装失败时,再尝试手动安装。

 

补充:安装maven插件时,出现错误 maven requires 'bundle org.slf4j.api 1.6.2',此方法验证可解决

http://robin.sh/html/1526_eclipse-maven.html 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics