IntelliJ File掩码不适用于简单的排除文件模式!为什么? [英] IntelliJ File mask not working on simple excluding file pattern! Why?

查看:843
本文介绍了IntelliJ File掩码不适用于简单的排除文件模式!为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关注此页面 https://www.jetbrains.com/help/pycharm/2016.1/find-and-replace-in-path.html?origin=old_help#mask ,它应该可以使用!"排除许多文件! "常规模式前面的符号,例如:*.java,当在IntelliJ项目中进行文本搜索时.

Follows this page https://www.jetbrains.com/help/pycharm/2016.1/find-and-replace-in-path.html?origin=old_help#mask , it should be able to exclude many files using "!" symbol in front of the regular pattern like: *.java, when doing text search inside IntelliJ projects.

在我的项目中,当我触发 Ctrl + Shift + F 进行文本搜索时,字符串为xyz. * .ftl和* .java文件都返回了100多个结果.我试图通过将"File mask(s)"-Option更改为"!*.java"来减少仅ftl文件的结果.但这没有用!结果列表为空!

On my project, when I fired Ctrl + Shift + F to do text search for string xyz. There's over 100+ results return in both *.ftl and *.java files. I tried to reduce the results on only ftl files by changing the "File mask(s)"-Option to "!*.java" . But it did not work! The result list is empty!

在排除文件模式上进行搜索会导致为每个特定的搜索创建自定义文件过滤器,而我不想维护该过滤器!

Googling on the excluding file pattern results in creating custom file filters for each particular search, which I don't want to maintain!

我在这里错过了什么吗,还是IntelliJ在此功能上不好(我正在使用IntelliJ 15)?使用Eclipse,文件掩码"非常棒!

Do I miss something here or IntelliJ is just bad on this function (I'm using IntelliJ 15)? With Eclipse, the "File mask" was amazing!

推荐答案

您必须使用 !*.java代替!.java

这篇关于IntelliJ File掩码不适用于简单的排除文件模式!为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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