如何忽略NetBeans“查找项目"中的构建文件夹? [英] How do I Ignore the build folder in NetBeans 'Find In Projects'?
问题描述
在NetBeans(v6.9.1)上执行在项目中查找"时,任何人都知道如何忽略构建文件夹.
Anyone know how to ignore the build folder when doing a 'Find in Projects' on NetBeans (v6.9.1).
当前,搜索结果"窗格显示src文件夹中的所有结果,也显示了build文件夹中的结果,因此,例如,如果您的项目包含很多JSP文件,则很多结果都是重复的...
Currently the Search results pane shows all results from src folders but also those from the build folder so if your project contains a lot of JSP files for example, many results are duplicated...
推荐答案
我想我已经弄清楚了在NetBeans 6.9.1中执行在项目中查找"时如何忽略项目的build文件夹:
I think I've figured out how to ignore the build folder of projects when doing a 'Find in Projects' in NetBeans 6.9.1:
- 转到工具->其他选项.
- 点击文件标签.
-
在被IDE忽略的文件中,编辑被忽略的文件格式 正则表达式,并包含
build
文件夹.例如,在 在我的系统中,我只是添加了build
这样:
- Go to Tools->Options-Miscellaneous.
- Click the Files tab.
In Files Ignored by the IDE, edit the Ignored Files Pattern regular expression and include the
build
folder. For example, on my system I simply addedbuild
thus:
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn|build)$|~$|^\.(?!htaccess$).*$
(书呆子注意:每天花了我整整一年的时间来解决这个问题!)
(Nerd Note: Took me exactly 1 year to the day to figure this out!)
这篇关于如何忽略NetBeans“查找项目"中的构建文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!