Hi all! This is not a Kotlin-specific question per...
# intellij
d
Hi all! This is not a Kotlin-specific question per-sé, but I was recently looking into custom scopes in IJ / AS to filter out generated sources from the quick search dialog. However, I did not succeed finding a working pattern that would exclude generated build sources for real, they’d still show up. I tried
!file:build//*
,
!file:*/build//*
and various others, like documented here: https://www.jetbrains.com/help/idea/scope-language-syntax-reference.html#create-scope-from-existing-scopes. What am I doing wrong?
w
This is my scope for _mostly project files:
Copy code
!file:*build//*&&!file:*intermediates//*&&!file:*generated//*&&!lib:*..*&&(file:*.kt||file:*.xml)
❤️ 1
d
That works like a charm, thank you!