0

I have specific file generated after build under sub module abc/xyz.yml, how to exclude that specific file in specific module but not all yml file when searching in intellij?

Thanks

1 Answers1

0

In file mask (on the top right corner) you can search only in one file with xyz.yml, search for multiples files with *.yml or xyz.yml, abc.yml and you can inverse this search with an exclamation mark !xyz.yml

Marius ROBERT
  • 426
  • 4
  • 15
  • First I want to add these specific files permanently. This answer quite match but I want to add specific file instead of *.yml: https://stackoverflow.com/a/57317891/5419748 – Zx binhjy xZ May 09 '22 at 04:53
  • Another solution I think have to create custom filter: https://stackoverflow.com/a/37781104/5419748 but this is not so convenient – Zx binhjy xZ May 09 '22 at 04:54
  • I don't think I can create custom filter, so have to input the file every time searching? – Zx binhjy xZ May 09 '22 at 05:08
  • @ZxbinhjyxZ I don't know for custom filter but as I said, you can make specific filters with `name_of_file.yml` or exclude it with `!name_of_file.yml` – Marius ROBERT May 09 '22 at 07:17
  • hi @ Marius ROBERT, there are 5 files I want to exclude, every time I search I have to input manually 5 files? and more important point is I want to exclude file in specific module (there are 2 file with same name, exclude only in 1 sub module), can I filter file with the sub module also? – Zx binhjy xZ May 10 '22 at 03:06