Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does CTRL-G do in Eclipse?

Tags:

java

eclipse

I know that CTRL+Shift+G finds usages of a particular element. However, if I use CTRL+G then something similar happens, it appears usages are found, but it seems more of a subset.

Its not really clear to me exactly what CTRL+G on an element in Java does.

like image 949
Oliver Watkins Avatar asked Jun 21 '13 09:06

Oliver Watkins


People also ask

What is Ctrl G used for?

Alternatively known as Control+G, ^g, and C-g, Ctrl+G is a keyboard shortcut often used to advance through Find results or move to a specific line in a document, spreadsheet, or text file.

What are the shortcut Keys in Eclipse?

The Key Assist action which can be invoked by clicking Ctrl + Shift + L shows us all the accelerators or shortcut keys available in Eclipse. The key combination assigned to an action can be changed using the Keys preference page. There are many commands or actions in Eclipse for which there are no shortcut keys.

How do I enable Ctrl G?

Alternatively referred to as Control G and C-g, Ctrl+G is a shortcut key most often used to go to a line or page. To use the keyboard shortcut Ctrl+G, press and hold either Ctrl key on the keyboard and while continuing to hold, press the "G" key with either hand.


2 Answers

CTRL+G

Find **declarations** in workspace

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.

like image 96
Suresh Atta Avatar answered Oct 23 '22 09:10

Suresh Atta


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.

like image 1
Marko Topolnik Avatar answered Oct 23 '22 11:10

Marko Topolnik