如何忽略NetBeans“查找项目"中的构建文件夹? [英] How do I Ignore the build folder in NetBeans 'Find In Projects'?

查看:78
本文介绍了如何忽略NetBeans“查找项目"中的构建文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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:

  1. 转到工具->其他选项.
  2. 点击文件标签.
  3. 被IDE忽略的文件中,编辑被忽略的文件格式 正则表达式,并包含build文件夹.例如,在 在我的系统中,我只是添加了build这样:

  1. Go to Tools->Options-Miscellaneous.
  2. Click the Files tab.
  3. 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 added build thus:

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

  • 单击确定"保存选项并关闭对话框.
  • (书呆子注意:每天花了我整整一年的时间来解决这个问题!)

    (Nerd Note: Took me exactly 1 year to the day to figure this out!)

    这篇关于如何忽略NetBeans“查找项目"中的构建文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆