如何设置Netbeans操作项过滤器以忽略第三方文件夹? [英] How to set Netbeans Action Item filters to ignore third party folders?

查看:256
本文介绍了如何设置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

步骤:

  1. 工具>其他选项
  2. 转到文件"标签
  3. Ignored Files Pattern框中的regex中添加"node_modules".这是一个示例:
  1. Tools > Options Miscellaneous
  2. Goto Files tab
  3. Add "node_modules" to the regex in Ignored Files Pattern box. Here's an example:

^(node_modules|git.+|hgignore)$).*$

  1. 保存

这篇关于如何设置Netbeans操作项过滤器以忽略第三方文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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