[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.cdt] Re: Excluding files from searches?

Mike Feher wrote:

One last question for the day...I am trying to exclude a lot of files from text/symbol searches in my C/C++ codebase. For example, I don't want to hunt through libraries, binaries, .svn-base files, etc. for symbols. Is there a way to limit text *and* code searches to just files of a given type? It seems like at first glance, I can only do this for code searches.

Thanks,
Mike
If you do a simple file search (not C/C++ search) you can give a list of filename patterns (e.g. *.cpp,*.h). The C/C++ looks by definition only in source files for symbols/references.

It is in both cases possible to limit the search to the current project or a working set (If you have a very large project I would suggest to create some working sets. IMHO, they are very helpful. Not only for searching.).

If your compiled binaries/object files are in a specific folder you can change the properties of this folder. Set the flag "Derived". Then Eclipse will exclude this folder (and all of its children) from any search.

You should also have a look at the your project properties. In C/C++ General->Paths and Symbols you can define where your source code lies and where your (generated) binaries are. Defining this properly will speed up things. The indexer looks only in source code folders and the binary parser (invoked after every build) will only parse the specified output folders.

 Axel