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

查看:27
本文介绍了如何忽略 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 中执行在项目中查找"时如何忽略项目的构建文件夹的方法:

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天全站免登陆