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?
views:
529answers:
3
+3
Q:
How do I search files in Eclipse so the results shows files that do NOT contain the search term?
A:
I don't use Eclipse, but one alternative could be to search for the term you don't want to search for and check all the files that don't appear in the results.
Josh Bradley
2009-07-19 01:54:03
I did think of that but a large number of my files dont, and they are in multiple folders and mixed up, so that would be very tedious, hence my question. :)
Cambo
2009-07-19 01:58:28
I use grep all the time on the servers, but call me lazy, or over-expectant, but I feel I should be able to do this in eclipse and not have to resort to the command line.
Cambo
2009-07-22 09:49:36
"have to resort to"? Surely you wanted to say "be delighted to get an opportunity to"? And no, I seriously don't think we need another 20 features in an already complicated piece of software.
Kim
2009-07-22 10:52:09
+3
A:
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).
ymir
2009-07-19 08:53:35
Hi. I tried these. The [^term] works but doesn't give the results I want. The other style, while not giving an error as a malformed regexp or anything, gives no results. I am trying to work through the info on the link you provided to see if I can work this out. Thanks
Cambo
2009-07-22 09:47:27