代码拼写智能提示:
1.依次打开 Windows--Preferences--Java--Editor--Content Assist
2.找到 Auto Activation Triggers for Java,输入
.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
3.Apply and Close
取消输入空格,=,分号(;)时自动补全功能
(1). 打开"Window--Show View--Other--Plug-in Development--Plug-ins"
(2). 没有Plug-in Development,安装
Work With=http://download.eclipse.org/releases/oxygen(根据版本选择)
type filter text=Plug-in Development
重复第(1)步
(3). 找到插件org.eclipse.jface.text,右键点击,选择import as Project from a Repository,导入完成后,在你的workspace就可以看到这个project了
src--org.eclipse.jface.text.contentassist--CompletionProposalPopup.java
搜索并修改"char[] triggers = t.getTriggerCharacter(); " 下面的if判断语句,
if(key != '=' && key != 0x20 && key !='.' && key != ';' && contains(triggers,key))
(4). 把修改好的org.eclipse.jface.text导出
右键点击你的workspace里的org.eclipse.jface.text,选择export-->Plug-in Development-->Deployable plugins and fragments--> next-->destination 选择archive file,然后finish.你就可以在zip文件里看到生成好的jar ,用它替换掉eclipse/plugins里面的
org.eclipse.jface.text.版本号.jar