How can I tell IntelliJ's “Find in Files” to ignore generated files?

前端 未结 4 1422
天涯浪人
天涯浪人 2021-01-30 15:36

I need to do a find in files. I want to ignore or exclude generated files, like JAX-WS artifacts or classes in target folders. How can I tell IDEA to exclude these files from th

4条回答
  •  伪装坚强ぢ
    2021-01-30 16:19

    You can also put the search file filter starting with ! sign to exclude. Example to search code not in Test Java files: !*Test.java

    If you have a few types of files you can separate with , sign. Example to search in Kotlin and Groovy files only: *.kt,*.groovy

    This might be also helpful.

提交回复
热议问题