eclipse使用

自动补全

首次使用eclipse,发现没有代码提示,怎么可能???

解决办法如下:

In case someone comes here and want to activate the autocomplete function, go to

Preferences -> Java -> Editor -> Content Assist.

Then in the Auto Activation section fill in Auto activation triggers for Java:

abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._

enter image description here

安装FatJar

我的eclipse版本是MAC版4.7.0,直接安装FatJar,发现装不上去。这时候需要安装低版本eclipse框架:

通过Help -> Install New Software… -> Work with.
选择"The Eclipse Project Updates - http://download.eclipse.org/eclipse/updates/4.7"
然后 勾选”Eclipse Tests, Examples, and Extras” 下的 “Eclipse 2.0 Style Plugin Support”

我比较悲催,之后安装FatJar又报错了:

An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=).
Error reading signed content.
Exception in opening zip file: /Applications/Eclipse.app/Contents/Eclipse/plugins/net.sf.fjep.fatjar_0.0.31
 
解决方法是:删除eclipse根目录中的artifacts.xml文件,重启eclipse,再次安装FatJar

参考资料:

https://stackoverflow.com/questions/908489/eclipse-java-code-completion-not-working

Eclipse 安装 Fatjar.jar失败的解决方法

https://stackoverflow.com/questions/25094583/error-when-try-install-plugin

原文地址:https://www.cnblogs.com/gattaca/p/7110037.html