如何从 IntelliJ IDEA 搜索中排除文件扩展名? [英] How to exclude a file extension from IntelliJ IDEA search?

查看:81
本文介绍了如何从 IntelliJ IDEA 搜索中排除文件扩展名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从 IntelliJ IDEA 的在路径中查找"对话框的结果中排除特定的文件扩展名(由 CTRL + SHIFT + F)?我想排除所有 .css 文件.

Is there a way to exclude particular file extension from the results in IntelliJ IDEA's "Find in Path" dialog (invoked by CTRL + SHIFT + F)? I want to exclude all .css files.

推荐答案

在 Intellij 16 中有一个文件名过滤器"部分来排除使用 !*.java 的扩展名.您也可以提供更详细的模式,例如我使用下面的模式仅返回 .java 文件,但名称以 test 开头或结尾的文件除外.模式:!*test.java,*.java,!Test*.java

In intellij 16 there is a section "File name Filter" to exclude an extension use !*.java. You can give more detailed patterns as well for example I use the pattern below to only return .java files except those with a name starting or ending with test. Pattern: !*test.java,*.java,!Test*.java

在 Intellij 的最新版本中,GUI 有所更新,但仍然适用,请参见右上角的文件掩码",参见下图:

In recent versions of Intellij the GUI has been updated a bit but the same still applies see the "File mask" on the top right hand corner see image below:

这篇关于如何从 IntelliJ IDEA 搜索中排除文件扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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