Keyboard shortcut for "open next search result"?

Eclipse has this great feature for finding text in Workspace ( Ctrl + Alt + G ), Project, File or Working Set.

The results are displayed neatly on the โ€œSearchโ€ / โ€œViewโ€ tab, and when I double-click (i.e. mouse ) on a specific line, the file (in which the found search text is found) opens exactly where the search text is located.

Is there a keyboard shortcut for this double click? To open the next one?

+6
source share
3 answers

There is more than one key combination for this action that I know of, but there are two of them that can work in sequence.

  • Go to Window> Prefs> Keys
  • Search Show View
  • Set some custom keyboard shortcuts because the default is too long to be effective (I like to use Alt + Shift + S)
  • Search
  • When searching in focus, double-click the first result
  • When you're ready to move on to the next element, use the key combination to display the search again (Alt + Shift + S for me).
  • Then press "Ctrl +."
  • This shortcut will display the following result and a new file will open.

So with this sequence you can use two keyboard shortcuts (Alt + Shift + S, then Ctrl +.) To do what you want.

+2
source

Checkout the Eclipse Keyboard Shortcuts in the PDF list for v2.1, v3.0 and v3.1 HERE

+1
source

@gamerson has the correct answer, but in the future I would like to make sure that you know about the two key keys of the meta keyboard keys:

  • Ctrl-Shift-L (Command-Shift-L on Mac) - Opens a list of available shortcuts to search.
  • Ctrl-3 (Command-3 on Mac) - โ€œQuick Accessโ€ gives you a list containing a list of searchable items, menu items, windows, tabs, etc. This is pretty damn useful.
0
source

Source: https://habr.com/ru/post/919615/


All Articles