Eclipse 用 REMOVE_PREFERENCE_MARKER 包围自动生成的参数名称
Eclipse surrounds auto-generated param names with REMOVE_PREFERENCE_MARKER
Eclipse 使用“REMOVE_PREFERENCE_MARKER
”围绕建议和自动生成的参数名称。下面是一个自动生成的方法和显示建议的图像。我不知道为什么。
@Override
public int compareTo(Foo REMOVE_PREFERENCE_MARKEROREMOVE_PREFERENCE_MARKER) {
// TODO Auto-generated method stub
return 0;
}
更新:
我运行搜索了我的 Eclipse 安装并找到了这个...
╭─┤me@mycomputer├─┤/c/Users/me/eclipse/java-neon├─
╰─┤:)├╴ » ag 'REMOVE_PREFERENCE_MARKER'
eclipse/configuration/org.eclipse.oomph.setup/setup.log
5690:[2017-02-01 17:42:06] Performing Preference /instance/org.eclipse.debug.ui/Console.highWaterMark = REMOVE_PREFERENCE_MARKER
5691:[2017-02-01 17:42:06] Performing Preference /instance/org.eclipse.debug.ui/Console.lowWaterMark = REMOVE_PREFERENCE_MARKER
12788:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.argumentPrefixes = REMOVE_PREFERENCE_MARKER
12789:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.argumentSuffixes = REMOVE_PREFERENCE_MARKER
12790:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.fieldPrefixes = REMOVE_PREFERENCE_MARKER
12791:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.fieldSuffixes = REMOVE_PREFERENCE_MARKER
12792:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.localPrefixes = REMOVE_PREFERENCE_MARKER
12793:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.localSuffixes = REMOVE_PREFERENCE_MARKER
12794:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.staticFieldPrefixes = REMOVE_PREFERENCE_MARKER
12795:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.staticFieldSuffixes = REMOVE_PREFERENCE_MARKER
12796:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes = REMOVE_PREFERENCE_MARKER
12797:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes = REMOVE_PREFERENCE_MARKER
12798:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.exception.name = REMOVE_PREFERENCE_MARKER
12799:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.gettersetter.use.is = REMOVE_PREFERENCE_MARKER
12800:[2017-04-21 16:44:50] Performing Preference /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.overrideannotation = REMOVE_PREFERENCE_MARKER
看来 Oomph 的偏好记录器是罪魁祸首。我似乎记得告诉它做一些需要很长时间的事情并且它崩溃了,所以也许这个“REMOVE_PREFERENCE_MARKER
”字符串应该被删除但它在它之前关闭了或者什么的。我会在找到更多内容时进行更新,如果我解决了问题,post 会给出答案。
仍然不确定它是如何发生的,但要修复它请转到 Window -> Preferences -> Java -> Code Style
。每个 "Variable Type" 字段都有 REMOVE_PREFERENCE_MARKER
作为 "Prefix list" 和 "Suffix list"。另外 "Exception variable name in catch blocks" 是 REMOVE_PREFERENCE_MARKER
.
我删除了前缀和后缀并将异常名称设置回 e
。
还有 "Use 'is' prefix for getters that return boolean" 和 "Add '@Override' annotation for new overriding methods" 未选中,所以我重新检查了它们。
Eclipse 使用“REMOVE_PREFERENCE_MARKER
”围绕建议和自动生成的参数名称。下面是一个自动生成的方法和显示建议的图像。我不知道为什么。
@Override
public int compareTo(Foo REMOVE_PREFERENCE_MARKEROREMOVE_PREFERENCE_MARKER) {
// TODO Auto-generated method stub
return 0;
}
更新:
我运行搜索了我的 Eclipse 安装并找到了这个...
╭─┤me@mycomputer├─┤/c/Users/me/eclipse/java-neon├─
╰─┤:)├╴ » ag 'REMOVE_PREFERENCE_MARKER'
eclipse/configuration/org.eclipse.oomph.setup/setup.log
5690:[2017-02-01 17:42:06] Performing Preference /instance/org.eclipse.debug.ui/Console.highWaterMark = REMOVE_PREFERENCE_MARKER
5691:[2017-02-01 17:42:06] Performing Preference /instance/org.eclipse.debug.ui/Console.lowWaterMark = REMOVE_PREFERENCE_MARKER
12788:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.argumentPrefixes = REMOVE_PREFERENCE_MARKER
12789:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.argumentSuffixes = REMOVE_PREFERENCE_MARKER
12790:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.fieldPrefixes = REMOVE_PREFERENCE_MARKER
12791:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.fieldSuffixes = REMOVE_PREFERENCE_MARKER
12792:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.localPrefixes = REMOVE_PREFERENCE_MARKER
12793:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.localSuffixes = REMOVE_PREFERENCE_MARKER
12794:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.staticFieldPrefixes = REMOVE_PREFERENCE_MARKER
12795:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.staticFieldSuffixes = REMOVE_PREFERENCE_MARKER
12796:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes = REMOVE_PREFERENCE_MARKER
12797:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes = REMOVE_PREFERENCE_MARKER
12798:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.exception.name = REMOVE_PREFERENCE_MARKER
12799:[2017-04-21 16:44:49] Performing Preference /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.gettersetter.use.is = REMOVE_PREFERENCE_MARKER
12800:[2017-04-21 16:44:50] Performing Preference /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.overrideannotation = REMOVE_PREFERENCE_MARKER
看来 Oomph 的偏好记录器是罪魁祸首。我似乎记得告诉它做一些需要很长时间的事情并且它崩溃了,所以也许这个“REMOVE_PREFERENCE_MARKER
”字符串应该被删除但它在它之前关闭了或者什么的。我会在找到更多内容时进行更新,如果我解决了问题,post 会给出答案。
仍然不确定它是如何发生的,但要修复它请转到 Window -> Preferences -> Java -> Code Style
。每个 "Variable Type" 字段都有 REMOVE_PREFERENCE_MARKER
作为 "Prefix list" 和 "Suffix list"。另外 "Exception variable name in catch blocks" 是 REMOVE_PREFERENCE_MARKER
.
我删除了前缀和后缀并将异常名称设置回 e
。
还有 "Use 'is' prefix for getters that return boolean" 和 "Add '@Override' annotation for new overriding methods" 未选中,所以我重新检查了它们。