eclipse代码提示
window→perferences→java→Editor→Content Assist→Auto Activation→Auto activation trigger for Java
- 粘贴字符串:.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
- 响应时间设为200ms
就可以使用sysout,main这些快捷方法提示啦
在preferences中找到XML,依次展开列表"XML Files"->“Editor”->“Content Assist”,点击Content Assist后,在设置窗口上方找到Auto activation栏,进行代码提示延时和代码提示字符设置。
- 粘贴字符串: <=:abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
- 响应时间设为500ms
高亮相同变量
1.相同变量标识高亮显示:
Window ->preferences ->Java ->Editor ->Mark Occurrences
勾选复选框 Mark occurrences of the selected element in the current file
2.设置标识显示的高亮背景颜色:
Window→ preferences→ General →Editors →Text Editors→ Annotations(注釈)→Occurrences(出現箇所)/Write Occurrences(書き込み出現箇所)
效果如下