转:Eclipse Search Tips
from: https://github.com/ajermakovics/eclipse-instasearch/wiki/Eclipse-search-tips
Eclipse Search Tips
A few search shortcuts:
- Ctrl+J - Incremental Find in the current file. Pressing again takes to next match
- Ctrl+O - Quick Outline for the current class. Quickly find a method/field by name
- Ctrl+T - Type Hierarchy. Works for classes and methods as well
- Ctrl+E - Find an open tab by name
- Ctrl+Alt+H - Call Hierarchy. Works for classes, methods and fields
- Ctrl+Shift+T - Open Type. Quickly find any type by name (Ctrl+Shift+R for resources) Camel case search works here. eg. type HM or HaMa to find HashMap
Search result highlighting in the editor:
- Open Eclipse Preferences
- Go to General->Editors->Text Editors->Annotations
- Select Search Results from Annotation types
- Mark all checkboxes and, optionally, choose color