eclipse常用快捷键和插件

1.快捷键

找实现类  ctrl +T

  抽取為方法:alt+shift+M (Method)

  方法返回值 ctrl+1 enter

2.在做Java项目的时候如何把第三方的jar包一起打包成jar文件

  安装Eclipse打包插件Fat Jar  

  安装方法:
  1、Eclipse在线更新方法
  Help > Install New Software > Add,
  name:Fat Jar
  location:http://kurucz-grafika.de/fatjar

  2、Eclipse插件手动安装方法
  下载地址:http://downloads.sourceforge.NET/fjep/net.sf.fjep.fatjar_0.0.27.zip?modtime=1195824818&big_mirror=0
   将解压出的plugins中的文件复制到eclipse安装目录中的plugins目录下,然后重启eclipse即可。

 

       3.eclipse 安装 Fatjar 报错Failed to prepare partial IU

  解决办法:

  go to Help -> Install New Software..., choose "The Eclipse Project Updates - http://download.eclipse.org/eclipse/updates/4.4" from the "Work with" list and then in the "Eclipse Tests, Examples, and Extras"   category check "Eclipse 2.0 Style Plugin Support" and install it. After restarting Eclipse, install veloeclipse again and this time the installation will succeed.

  

 

使用方法:

 

 

 

3.eclipse代码规范:Checkstyle的安装和使用、codeformatter、codetemplets  (使用华为模板)

参考:https://blog.csdn.net/will_awoke/article/details/12705611

4.将Eclipse设置为UTF-8

 打开Eclipse安装目录下的eclipse.ini,在最末尾新增一行

 -Dfile.encoding=UTF-8

 

posted @ 2017-03-17 10:28  酸奶加绿茶  阅读(196)  评论(0编辑  收藏  举报