Eclipse编辑器显示变量发生 [英] Eclipse editor show variable occurrence

查看:133
本文介绍了Eclipse编辑器显示变量发生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse标准安装中,如果您用光标点击变量,编辑器将标记所有出现的变量。

In Eclipse Standard Installation the editor marks all occurrences of a variable if you click on it with a cursor.

将光标设置在foo变量的某处,它也突出显示所有其他foo。

e.g. Setting the cursor somewhere on the 'foo' Variables it highlights all other foo's too.


public void printString(String foo){
System.out.println(foo); }

public void printString(String foo){ System.out.println(foo); }

任何想法再次切换此行为或为什么功能不起作用?
我知道解决方法是'References-> Workspace',但自动突出显示更方便。

Any ideas where to switch this behavior on again or why the feature doesn't work ? I know the workaround is 'References->Workspace' but the auto highlighting is much more convenient.

推荐答案

你正在询问关于切换标记事件的简短说明是 Alt + Shift + O

You are asking about the "Toggle Mark Occurrences" the short cut for this is Alt + Shift + O

这篇关于Eclipse编辑器显示变量发生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆