Is there any way (annotation, IntelliJ plugin) to ...
# announcements
j
Is there any way (annotation, IntelliJ plugin) to restrict the auto completion ? I am trying to build a DSL for an experiment, and I'd like autocompletion to only suggest functions/classes/etc from my DSL package. I think that's something that could be very useful if you are building a DSL for people who are not very familiar with Kotlin at first and don't want to get them overwhelmed when editing files in IntelliJ 🙂
p
I am not sure if you are looking for this, but you can check https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-dsl-marker/index.html
j
I know that annotation but that is not what I am looking for 🙂 It really is just something tied to the IDE; I want autocomplete to only suggests functions/classes/etc from a specific package.
r
How do you expect that to work? It would make it impossible to use strings, lambdas, the std-lib...