CTRL-G 在 Eclipse 中做什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17231851/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What does CTRL-G do in Eclipse?
提问by Oliver Watkins
I know that CTRL+Shift+Gfinds usages of a particular element. However, if I use CTRL+Gthen something similar happens, it appears usages are found, but it seems more of a subset.
我知道CTRL+ Shift+G特定元素的发现用途。但是,如果我使用CTRL+G然后发生类似的事情,似乎找到了用法,但它似乎更像是一个子集。
Its not really clear to me exactly what CTRL+Gon an element in Java does.
我不太清楚Java 元素上的CTRL+到底是做什么的G。
回答by Suresh Atta
CTRL+G
CTRL+G
Find **declarations** in workspace
CTRL+Shift+G
CTRL+ Shift+G
Find **references** in workspace
If you want to change those,open Windows->Preferences->General->Keys.
Now you can use the filter to find your shortcut and change its binding.
如果您想更改这些,请打开Windows->Preferences->General->Keys.
现在您可以使用过滤器找到您的快捷方式并更改其绑定。
回答by Marko Topolnik
To find out in general what any keyboard shortcut does in Eclipse, go to Preferences | Keys. Type the combination in the Binding text box and you'll see its current binding.
要大致了解 Eclipse 中任何键盘快捷键的作用,请转至 Preferences | 钥匙。在绑定文本框中键入组合,您将看到其当前绑定。
回答by gia
Press Ctrl+Shift+Ltwice for the glory of preferences.
按Ctrl+ Shift+L的喜好荣耀的两倍。
回答by sanbhat
It is used to find the declaration of the field or method
用于查找字段或方法的声明