问题
There is a search everywhere
shortcut in Intellij IDEA(double clicking shift button), I'm wondering if similiar searching can be done in Eclipse. I did some googling, but it seems I can't search files/code at the same time in Eclipse.
Any suggestions are appreciated.
回答1:
No, the search everywhere (source code, databases, actions, elements of the user interface) from IntelliJ is (for Eclipse) split at least between:
- searches (ctrl+H): you can define a search in files by default.
- searches in shortcuts (ctrl+l): for dearching the list of key bindings
回答2:
For me, its a combination of:
Cmd+Shift+R
: using wildcards like *, for the files
Cmd+Shift+M
: for methods (also Cmd+O
for a quick outline)
Cmd+Shift+T
: for classes
I prefer keyboard shortcuts rather than the mouse, so these 3 shortcuts helps me a lot
回答3:
Control + 3 - search in all the settings. And my favourite Control + Shift + L (Only in Spring Source Tool Suite) - it's like Google for your source code. Is somehow similar to Symbol/ctag search in Intellij but it finds ALL occurences.
Both are very old features.
来源:https://stackoverflow.com/questions/25831703/eclipse-search-everywhere