如何设置Netbeans操作项过滤器以忽略第三方文件夹? [英] How to set Netbeans Action Item filters to ignore third party folders?
本文介绍了如何设置Netbeans操作项过滤器以忽略第三方文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不想在Netbeans操作项"列表中看到第三方库的错误和警告,因此我创建了一个过滤器,如下所示:
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
文件夹中的许多项目.
我究竟做错了什么?
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
步骤:
- 工具>其他选项
- 转到文件"标签
- 在
Ignored Files Pattern
框中的regex
中添加"node_modules
".这是一个示例:
- 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屋!
查看全文