解决eclipse的变量自动补全问题

1.选择Window->Show View->Other->Plug-in Development->Plug-ins
2.选择org.eclipse.jface.text,右击选择Import As,再选择Project from a Repository,将此jar包下载下来,然后打开org.eclipse.jface.text.contentassist.CompletionProposalPopup类,找到"char[] triggers = t.getTriggerCharacter(); ",注释下面一行,并写入的if判断语句,“if(key != ‘=’ && key != 0x20 && contains(triggers,key)) {”
3.将修改好的插件代码,导出成jar包,替换eclipse/plugins里面的插件jar包。

你可能感兴趣的:(eclipse)