Home > WebDev > NetBeans PHP ignore folder

NetBeans PHP ignore folder

As I’m currently write a little more PHP code than usually I may need a “better” IDE for development. I’m not sure if you know NetBeans but it looks pretty promising.

One thing that bugged me from the beginning was that I have a folder “Data” where I write temporary files and NetBeans kept complaining about those files. I though it would be an easy rightlick->ignore folder. Well yeah it wasn’t. It took me about half an hour to find a way to ignore folders in NetBeans PHP.

Here is my solution:
Goto: Tools->Options->Miscellaneous->Files
Edit the Ignore Files Pattern:

^(##INSERT_FOLDER_HERE##|CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess$).*$

(replace the ##INSERT_FOLDER_HERE## with your folder name [example.: "Data"])
it’s a regular expression so if you know how to handle it -> your lucky; if not try it and/or ask for help

Here is a picture how it could look:
NetBeans ignore folder

daKmoR WebDev ,

  1. chris
    May 26th, 2009 at 13:32 | #1

    IDEs are for sissies. If you want a good _editor_, checkout ViM :)

  2. May 26th, 2009 at 13:35 | #2

    true, true… :)

  3. June 13th, 2009 at 18:21 | #3

    really good tip, id like to be able to be more specific with the excludes or make them project based, but this got me in the right direction :)

  4. June 30th, 2009 at 15:53 | #4

    I’ve just switched over from Eclipse 3.3 today once I got sick of it crashing. NetBeans 6.7 isn’t too hard to switch to I’ve been really pleased. Cheers for this tip, I wanted to remove a bunch of backup files from the project so they weren’t added to the code completion helper.

  5. Cnote
    February 27th, 2010 at 10:53 | #5

    Great tip! thanks, i’m sure this can be applied to files as well.

  1. No trackbacks yet.