Highlighting all occurrences of a search string in Eclipse Java editor - eclipse

If you search for a String in Netbeans Java editor, it automatically highlights all occurrences of that string.
But, how can I achieve this feature in Eclipse?
(I checked Preferences > Java > Editor > Mark Occurrences, but it seems it is only for similar variables methods etc. but not for for search matches)

Have you tried the Glance plugin for Eclipse? fully meet your requirements and even with more features.
demo and Github of this project:
http://ystrot.github.io/glance/
UPDATE: available in Eclipse marketplace
http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=1012

You can enable "Toggle Mark Occurrences" (shortkey is ALT+SHIFT+O).
For the color of the select text,you can:
Window->Preferences->General->Editors->Text Editors->Annotations->Occurrences
Hope it useful.

eclipse instasearch plugin is a very useful plugin for search needs inside eclipse.
It is based on lucene. This is also available in eclipse marketplace.
It has extensive feature set.
Instantly shows search results
Shows a preview using relevant lines
Periodically updates the index
Matches partial words (e.g. case in CamelCase)
Opens and highlights matches in files
Searches JAR source attachments
Supports filtering by extension/project/working set

Related

Eclipse content assist: filter by "contains the phrase" instead of "starts with the phrase"

If you start typing when the content assist is activated, content assist will only filter the suggestions based on the starting letters.
However, suppose that there is an object and we need to see if any of its methods contain a specific phrase in any parts of their names (not just checking if they start with that phrase).
Is there any way to configure the content assist or is there any plugin out there to provide that functionality for Eclipse?
The Eclipse Code Recommenders project includes subwords completion which seems to be exactly what you are looking for.
Keep in mind that with the upcoming 2.1 release (together with Eclipse Luna on the 25th of June, 2014), the subwords completion is no longer activated by default. Go to Preferences > Code Recommenders > Completions and activate the Subwords-Completion Processor.

InstaSearch (eclipse plugin) functionality in intelliJ v11.x?

One thing I miss about moving from eclipse to intelliJ is the InstaSearch plugin that would let you to search the source code codes of your entire project very quickly, really simple and effective.
Is there such a functionality in intelliJ either baked in or added via a plugin?
IntelliJ supports search and replace in your entire project.
To find a text in all files within the specified path
1. On the main menu, choose Edit | Find | Find in Path, or press Ctrl+Shift+F.
2. In the Find In Path Dialog, specify the following options:
Text to find (you can select one from the recent history drop-down list).
Search scope (project, module or directory).
Search options (case sensitivity, whole words, and regular expressions).
See instructions here.

Eclipse content assist (for PHP or anything) not using active working set

The Eclipse content assist for PHP (and I'm assuming for other types as well) isn't using the currently active working set - it's searching ALL files in the project. How do I change it to only use the active working set?
When doing a Ctrl+Shift+R search, it was also looking for all files in the project (not what I wanted), until I clicked the small black triangle in that window and selected the working set I wanted it to use. Now it successfully only shows the files that match my search string in the working set. However, this doesn't change anything in the autocomplete content assist feature (i.e. doing a Ctrl+Space to complete the name of a function or variable). Is there any way to accomplish this?
I'm using Eclipse Indigo release, so it's very recent.
I'm afraid it's not possible the way you put it. Eclipse Working Sets just give you a way to organize your projects.
However you may want to take a look at Mylyn, which is fully integrated with Eclipse platform. Here and here is a nice overview of what you can do with Mylyn. But briefly, what it allows you to do is to create a task and maintain a context associated with it. This way, only the relevant files will be displayed in Project Explorer and autocomplete would suggest you only task-focused options.

QuickText (Notepad++) plugin for Eclipse

Is there a QuickText like (Tab Trigger) plugin for Eclipse?
If I read Tab Triggers of TextMate correctly, especially the part stating:
Tab triggers are also useful when they match program keywords and lead to actions (such as inserting snippets) that do what you would normally do after entering the keyword.
, the closest eclipse feature for that would be Preferences / Java / Editor / Templates
(the difference being that is is triggered not by Tab, but rather by Ctrl+Space...)
The example for instance allows you to insert quite a bit of code after typing only three letters...
(source: iipt.fr)

Why can't I search maven projects in eclipse

I'm using the m2Eclipse plugin (http://m2eclipse.sonatype.org/) to handle maven modules in eclipse. After enabling a project for dependency management and for nested modules, I can no longer do a 'File Search' over the project. The search finishes instantly with the search window display "0 matches in empty scope".
Any ideas how I can make search work again?
It would appear the plugin marks any non java folder as 'derived', which is why it gets ignored by the search. Right clicking on the non java folders and deselecting the check box fixed this.
Small addition to #slashnick’s answer:
In the “File Search” dialog of Eclipse you can also use the checkbox “Consider derived resources” to search those “derived” resources. This may be more convenient if you don’t want to change the properties of multiple resources just for a search.