Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude files with certain extensions while searching in IntelliJ IDEA using File maks

In IntelliJ IDEA, is it possible to limit search to files that exclude a certain extension? For example, I want to search for VirtualService among all non-yaml files. Do I need a regex to achieve this?

enter image description here

Thank you for reading.

like image 698
user674669 Avatar asked Sep 09 '25 23:09

user674669


1 Answers

In file path it is possible to exclude several file extensions, for example:

!*yml, !*yaml

This will exclude all .yml and .yaml file from search results.

like image 56
Gerard de Visser Avatar answered Sep 12 '25 14:09

Gerard de Visser