Warren Sergent
Warren Sergent

Reputation: 2597

NetBeans - Display .gitignore Files in Projects/Files

By default, NetBeans does not show .gitignore files inside it's Projects/Files lists.

How do I get them to show up?

I'd like to see them, since NetBeans has no issue actually editing these files.

Upvotes: 1

Views: 627

Answers (1)

Warren Sergent
Warren Sergent

Reputation: 2597

  • Open the NetBeans Options

  • Click on the 'Files' tab

  • Under 'Ignored Files Pattern', the default is:

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

  • This means that, by default, NetBeans ignores all files beginning with '.' except for .htaccess

  • You can update this regex to the following to also exclude .gitignore:

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

  • Click OK, and NetBeans will immediately begin displaying your .gitignore files.

Upvotes: 1

Related Questions