How do I search files in Eclipse so the results shows files that do NOT contain the search term?

前端 未结 3 1640
广开言路
广开言路 2020-12-29 23:48

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

相关标签:
3条回答
  • 2020-12-30 00:14

    The simplest way imo is to use InstaSearch Eclipse plugin and type:

    search text -wordToExclude -anotherWordToExclude

    0 讨论(0)
  • 2020-12-30 00:19

    This expression should work (reference):

    (?s)\A((?!YourSearchText).)*\Z
    
    0 讨论(0)
  • 2020-12-30 00:24

    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).

    0 讨论(0)
提交回复
热议问题