Netbeans: Display .gitignore File in Projects/Files

By default, Netbeans will ignore files such as CVS files, SVN files, dot files, etc. If you would like to have your .gitignore file displayed in your Projects or Files views, open up your Netbeans preferences, go to the the Miscellaneous tab at the top, then click on the Files tab. You’ll see a “Files Ignored by the IDE” section there. That field accepts a regular expression string that allows you to hide files. I have Netbeans NOT ignoring my .htaccess and my .gitignore files, but ignoring all other dot files. Here is what my pattern looks like:

^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!(htaccess|gitignore)$).*$
This entry was posted in Git, Misc. Bookmark the permalink.

5 Responses to Netbeans: Display .gitignore File in Projects/Files

  1. Pingback: Show .gitignore in NetBeans | tediscript.wordpress.com

  2. Pingback: Show .gitignore file in Netbeans « Andrei Boar

  3. Pingback: Netbeans tip: Show Files starting with dot (.) [files like .gitignore / .hidden ] in NB Projects | Enzam's Blog

  4. Joseph Becher says:

    Thank you. Did exactly what I was looking for.

  5. Just excellent. Opening gitignore files outside of Netbeans has frustrated me for too long. Thanks for this.