Show .gitignore file on Netbeans files list

By default, Netbeans is hiding all files with names starting with a dot excluding .htaccess file. If you are using Git you’ll problably face an issue here.

The solution is quite simple. Go to Tools => Options, select Miscellaneous tab and the Files subtab. All you need to do is to change Ignored Files Pattern into the following string:


If you screw something out, there’s a Default button on the right-hand side which will restore the original pattern ^(CVS|SCCS|vssver.?.scc|#.*#|%.*%|_svn)$|~$|^.(?!htaccess$).*$.

Hope this would help you saving few minutes.

Andrzej Ośmiałowski

Written by

Senior Software Engineer at

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade