score:959

Accepted answer

1. ctrl + h
2. choose file search for plain text search in workspace/selected projects

for specific expression searches, choose the relevant tab (such as java search which allows you to search for specific identifiers)

for whole project search:

3. scope (in the form section) > enclosing project (radio button selection).

score:0

what others have forgotten is ctrl+shift+l for easy text search. it searches everywhere and it is fast and efficient. this might be a sprint tool suit which is an extension of eclipse (and it might be available in newer versions)

score:0

search and replace'

ctrl + f open find and replace dialog

ctrl + f / ctrl + shift + k find previous / find next occurrence of search term (close find window first).

ctrl + h search workspace (java search, task search, and file search).

ctrl + j / ctrl+shift +j incremental search forward / backwards. type search term after pressing ctrl+j, there is now search window ctrl+shift+o open a resource search dialog to find any class

score:1

ctrl+h is very handy here. i mostly search in the current project, not the whole workspace. to find all occurences in the whole project of a string that is in your current buffer, just select the string press ctrl+h and hit enter. easy as that!

use resource filters! eclipse will restrict the search result using the resource filters defined for your project (eg. right click on you project name and select properties -> resource -> resource filters). so if you keep getting search hits from parts of your project that your not interested in you could make eclipse skip those by adding a resource filter for them. this is especially useful if you have build files or logs or other temporary files that are part of your projects directory structure, but you only want to search amongst the source code. you should also be aware of that files/directories matched for exclusion in the resource filters will not show up in the package explorer either, so you might not always want this.

score:2

yes, but you need to open the global search panel. to do so, press the binoculars icon on the top right corner of the ide.

you can even filter searches by function identifiers, method scopes an etc...

score:2

there is no way to do pure text search in whole work workspace/project via a shortcut that i know of (and it is a pita), but this will find references in the workspace:

  1. put your cursor on what you want to lookup
  2. press ctrl + shift + g

score:2

there is very nice tool "eclipse quicksearch" available. checkout springsource update site for eclipse i.e: http://dist.springsource.com/release/tools/update/e4.6/ (you can try other versions replacing last part of url with i.e. e4.4 or e4.5)

it works well with neon release (4.6.0). it gives you nice incremental text search with source file preview. i had no issues with it so far.

usage: alt + s "quick search command" opens "quick text search" dialog. you can select whether search should be case sensitive or not. really good tool.

score:3

first customize your search dialog. ctrl+h. click on the customize button and select inly file search while deselecting all the others. close the dialog.

now you can search by selecting the word and hitting the ctrl+h and then enter.

score:5

yes, but you need to open the global search panel. to do so, press the binoculars icon on the top right corner of the ide.

you can even filter searches by function identifiers, method scopes an etc...

  • choose file search for plain text search in workspace/selected projects
  • for specific expression searches, choose the relevant tab (such as java search which allows to search for specific identifiers)

score:6

ctrl + h is actually the right answer, but the scope in which it was pressed is actually pretty important. when you have last clicked on file you're working on, you'll get a different search window - java search: enter image description here

whereas when you select directory on package explorer and then press ctrl + h (or choose search -> file.. from main menu), you get the desired window - file search: enter image description here

score:8

you should check out the new eclipse 2019-09 4.13 quick search feature

the new quick search dialog provides a convenient, simple and fast way to run a textual search across your workspace and jump to matches in your code.

the dialog provides a quick overview showing matching lines of text at a glance.
it updates as quickly as you can type and allows for quick navigation using only the keyboard.

https://www.eclipse.org/eclipse/news/4.13/images/quick-search.png

a typical workflow starts by pressing the keyboard shortcut ctrl+alt+shift+l
(or cmd+alt+shift+l on mac).
typing a few letters updates the search result as you type.
use up-down arrow keys to select a match, then hit enter to open it in an editor.

score:15

ctrl + h is the best way! remember to copy the string before you start searching!

score:15

open search dialog search-> search... or use shortcut ctrl + h.

  1. containing text: type the expression for which you wish to do the text search.
  2. choose if you want case sensitive, regular expression or whole word
  3. file name patterns: in this field, enter all the file name patterns for the files to find or search through for the specified expression.
  4. scope: choose the scope of your search. you can either search the whole workspace, pre-defined working sets, previously selected resources or projects enclosing the selected resources.
  5. press search

enter image description here

score:32

ctrl+h.

also,

  • open any file quickly without browsing for it in the package explorer: ctrl + shift + r.

  • open a type (e.g.: a class, an interface) without clicking through interminable list of packages: ctrl + shift + t.

  • go directly to a member (method, variable) of a huge class file, especially when a lot of methods are named similarly: ctrl + o

  • go to line number n in the source file: ctrl + l, enter line number.

score:81

press ctrl + h to bring up the search that includes options to search via project, directory, etc.

score:98

ctrl + alt + g can be used to find selected text across a workspace in eclipse.

osx: ⌥ option + ⌘ command + g


Related Query

More Query from same tag