How to exclude a file extension from IntelliJ IDEA search?

后端 未结 5 880
北荒
北荒 2020-12-12 18:31

Is there a way to exclude particular file extension from the results in IntelliJ IDEA\'s \"Find in Path\" dialog (invoked by CTRL + SHIFT +

5条回答
  •  暖寄归人
    2020-12-12 19:11

    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

    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:

提交回复
热议问题