How to ignore pyc files in Netbeans project browser (regex question)

I want to ignore .pyc files in the Netbeans project browser.

I think I found a way: TOOLS → MISCELLANEOUS → FILES .

Here is a section called: Files ignored by the IDE.

The field is waiting for a regular expression that describes the file template. The default value for this field is:

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

How do I change this expression to (optionally) ignore .pyc files?

+3
source share
1 answer

Try the following:

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

I just added .*\.pycin the first capture of the group.

+9
source

Source: https://habr.com/ru/post/1763359/


All Articles