选择Windows->Preferences->Java->Editor->Mark Occurrences,全部选择并保存。 如下图: 转载于:https://www.cnblogs.com/yoyotl/p/5258112.html