In Eclipse editor, if I go Search->File, I can search for files that contain my search term. What I want to do is find all of the files that DO NOT contain my search term. Is that possible?
The Eclipse search dialog box allows you to search for files that contain a literal or a character pattern in the entire workspace, a set of projects, a specific project or folders selects in the package explorer view. Clicking on the Search menu and selecting Search or File or Java. Clicking Ctrl + H.
Press Ctrl + H , should bring up the search that will include options to search via project, directory, etc. Ctrl + Alt + G can be used to find selected text across a workspace in eclipse.
Use the built-in Eclipse Search dialog. The Search menu contains multiple items (Search→ Search, Search→ File, Search→ Help, and Search→ Java), but all of them open the same dialog.
The Eclipse error log captures internal errors that are caused by the operating system or your code. To view the Eclipse error log: Switch to the Plug-in Development perspective. From the main menu, select Window > Show view > Other.
This expression should work (reference):
(?s)\A((?!YourSearchText).)*\Z
Try checking "regular expression" option and then input somethign like [^term] or (?!term) -- meaning of both of this is 'not term' but they are slightly different (please refer to some RegExp documentation like this).
The simplest way imo is to use InstaSearch Eclipse plugin and type:
search text -wordToExclude -anotherWordToExclude
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