I am surprised to see that I am not able to check the number of occurrences of word I am trying to find. For just this one feature I need to switch to Notepad++ to do a find and check the count.
I tried to google, and search most of the locations on internet as far as I know, but didn't find anything. Have anyone encountered this issue? Any workaround? Or am I missing some basic hidden config in the eclipse world of preferences?
Note: I am aware of the highlight all feature, but I am interested in count of a word, e.g. Number of occurrences of word MyArray
.
Also, no such feature in console output as well.
Ctrl + shift + a finds 'occurances in a file' that highlights all occurances of the selected text as you describe.
Press Ctrl + Shift + G.
Shortcut commands in Eclipse IDE : CTRL + SHIFT + T –> used to search all Java type files (Open Type) CTRL + SHIFT + R –> used to search all types of files (Open Resource) CTRL + H –> opens dialog box which provides number of options (Search)
Highlight any string and hit Ctrl+Shift+U. It will give the occurrence in the Search window.
Find and Replace the same word so it will not be changed, and then press "Replace All". On the bottom of the search window you will see "xxx matches replaced". You also can Replace All and then revert the changes, when you missed it to set the "Replace with" field.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With