Netbeans include .env

Go to Tools -> Options -> Miscellaneous -> Files.

The property, Ignore Files has this as a default:

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

Remove the last portion: .*

The final result should be like this:

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

Source: Netbeans exclude .env