Home > other >  How to include multiple condition for intellij goland file mask?
How to include multiple condition for intellij goland file mask?

Time:04-20

I use strings like !*main*.js to filter out some files. But what if on top of this, I need the files to have 'test' in the file name?
I tried the following but they won't work:
!*main*.js & *test*
!*main*.js && *test*
!*main*.js AND *test*
enter image description here

CodePudding user response:

You can use comma to separate conditions:

!*main*.js,*test*

Alternatively, you can use Scopes: https://www.jetbrains.com/help/go/configuring-scopes-and-file-colors.html

  • Related