How to include multiple condition for intellij goland file mask?
Asked Answered
U

2

8

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

Unboned answered 20/4, 2022 at 6:10 Comment(0)
C
11

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

Clarke answered 20/4, 2022 at 7:59 Comment(0)
T
0

May not be relevant here but did this wonder wonder for me. Additionally, you can combine different conditions like this *.java,!*Test.java -> That is present in *.java files and do not include search from *Test.java files

Tenfold answered 28/7, 2023 at 13:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.