如何设置 Netbeans 操作项过滤器以忽略第三方文件夹? [英] How to set Netbeans Action Item filters to ignore third party folders?
本文介绍了如何设置 Netbeans 操作项过滤器以忽略第三方文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不想在 Netbeans Action Items 列表中看到第三方库的错误和警告,所以我创建了一个如下所示的过滤器:
I do not want to see errors and warnings for third party libraries in Netbeans Action Items list, so I created a filter as shown below:
过滤器已打开,但我仍然看到 node_modules
文件夹中的许多项目.我究竟做错了什么?应如何配置过滤器以忽略来自 node_modules
和 vendor
文件夹的所有内容?
The filter is turned on, but I still see many items from node_modules
folders.
What am I doing wrong? How should the filter be configured to ignore everything coming from node_modules
and vendor
folders?
推荐答案
一个解决方法是从项目树中隐藏 node_modules
A workaround for this is hiding node_modules
from project tree
步骤:
- 工具 > 其他选项
- 转到文件选项卡
- 将
node_modules
"添加到Ignored Files Pattern
框中的regex
.下面是一个例子:
- Tools > Options Miscellaneous
- Goto Files tab
- Add "
node_modules
" to theregex
inIgnored Files Pattern
box. Here's an example:
^(node_modules|git.+|hgignore)$).*$
- 保存
这篇关于如何设置 Netbeans 操作项过滤器以忽略第三方文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文