Search code examples
giteclipseversion-control

Search modified files in Eclipse


Eclipse's search view shows a > in front of folders or files that have been modified in version control. Other than manually removing results without that symbol, is there some way to exclude unmodified results from a search?


Solution

  • There is a workaround for this, no direct solution.

    Open Git Staging view in eclipse. In Unstaged changes section, all modified files will be listed automatically(with > mark). Select any file in it then press Ctrl+A. Right click on selection then click Show In > Project Explorer/Package Explorer/Navigator. Now all modified files will be selected in corresponding view.

    Then open search dialog(Ctrl+H) and enter the search string and DON'T forget to select search scope as Selected Resources.