How to set Netbeans Action Item filters to ignore third party folders?

烈酒焚心 提交于 2019-12-10 02:12:18

问题


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:

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?


回答1:


I found a solution to hide all parser errors in folder node_modules from this link: How do I Ignore the build folder in NetBeans 'Find In Projects'?

But it will make Netbeans hides node_modules from project tree

Steps:

  1. Tools > Options Miscellaneous
  2. Goto Files tab
  3. Add "node_modules" in Ignored Files Pattern box. For example:

^(node_modules|CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!(taccess|git.+|hgignore)$).*$

  1. Save



回答2:


Just a reminder: Ignoring folders will not display them any longer either and you wont be able to see it or search on it (until you enable it again of course). The filter for the extension works but will filter every single file with this extension, which problably isn't what you want either. If you just want to remove badges in a directory (recursive) without disabling it you just CAN'T. This issue was reported to netbeans and they provide the same incomplete solutions. https://netbeans.org/bugzilla/show_bug.cgi?id=226954



来源:https://stackoverflow.com/questions/31721090/how-to-set-netbeans-action-item-filters-to-ignore-third-party-folders

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!