Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excluding file types in Eclipse / Aptana find in files search

Is there a way to exclude say, image types in Aptana or Eclipse file search? I want to search all files that are not images rather than specifying all the file types that I want to search in.

like image 625
deadprogrammer Avatar asked Oct 28 '08 11:10

deadprogrammer


People also ask

How do I exclude files in eclipse?

Navigate to the file/folder you want to exclude. Right Click -> Resource -> Exclude from build.

How do I search across files in eclipse?

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.

How do I search for a specific file in Eclipse Java?

If you want to search in files: Ctrl + H and then choose tab File Search . If you want to search for resources: Ctrl + Shift + R . If you want to search for Java types: Ctrl + Shift + T . If you want more shortcut keys: Ctrl + Shift + L .


1 Answers

Try putting an '!' mark in front of the pattern you don't want to match - putting

!*.cgi, !*.pm, !*.sql 

in the File name patterns section is doing the job in a test I'm doing with Eclipse 3.4.1 (when the pattern was just * there was a file of each type, with that pattern, it is only returning js and pl files).

I was afraid that it would be a bit naive with the patterns and just allow anything that matched one of them to succeed (ie an sql file would match !*.cgi), but this doesn't seem to be the case.

like image 70
Cebjyre Avatar answered Sep 22 '22 03:09

Cebjyre