SaltyCrane Blog — Notes on JavaScript and web development

How to hide .o files from the "C/C++ Projects" view in Eclipse 3.2 / CDT 3.1

I got this tip from http://www.aspectprogrammer.org/blogs/adrian/2006/02/tips_for_using.html
  1. From the "C/C++ Projects" window, click the down arrow in the top right corner, and select "Filters..."
  2. Check the "Name filter patterns (matching names will be hidden):" checkbox and type "*.o" into the textbox. Click "OK".
  3. Now your .o files are hidden from view.

Comments


#1 Paul commented on :

Thanks for the posting. I've just started using eclipse, having come from an emacs background.

But... it doesn't work.

When I click on the downward pointing chevron in the "Project Explorer" window, the closest option I can find is "Customize View". When I select this, eclipse displays a list of filters to apply. When I click on "Object Files" (to hide these objects), and click on OK, the filter does not work.

Also, it is not possible to enter customized filers, such as *~ for emacs backup files.


#2 Zongjun commented on :

issue still there with Juno and CDT 8.1

Any workaround?


#3 Tawanda commented on :

Hi Paul, When you click on the downward pointing chevron in the "Project Explorer" window, the closest option you are finding is "Customize View", thats fine , you can use that as well. When you select this, eclipse displays a list of filters to apply. When you click on "Object Files" (to hide these objects), and click on OK, the filter must work, I have just done mine and its working