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

查看:17
本文介绍了如何设置 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_modulesvendor 文件夹的所有内容?

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. node_modules"添加到Ignored Files Pattern 框中的regex.下面是一个例子:
  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天全站免登陆