[ ].blue

Ignoring .pyc Files in NetBeans

June 5, 2009

I started using the Netbeans 6.5 Python (Early Access) IDE a couple of weeks ago, and while all seemed to be going well, one thing that bugged me was seeing all the .pyc (python compiled file) in the treeviews. Turns out NetBeans has a simple way to fix this:

  • On the menu go to Tools > Options
  • Then "Miscellaneous"
  • Then "Files" tab
  • And find the section "Files Ignored by the IDE"

This value is a regular expression which makes it easy to add the functionality we're looking for.

Change this:


To this:


You could easily use this method for any other file type you'd like to ignore. Just add |extension before the .*$.