https://kotlinlang.org logo
Title
d

dead.fish

01/27/2023, 7:58 AM
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

wasyl

01/27/2023, 8:23 AM
This is my scope for _mostly project files:
!file:*build//*&&!file:*intermediates//*&&!file:*generated//*&&!lib:*..*&&(file:*.kt||file:*.xml)
d

dead.fish

02/07/2023, 11:54 AM
That works like a charm, thank you!