Is there a way to have some code auto-generated du...
# getting-started
e
Is there a way to have some code auto-generated during type-time via annotations or something else?
y
KSP can do that, thus having the generated classes visible in the type-system
e
coz I'd like to generate that way the sealed enums
y
Well that's what KSP does. The only issue is you have to build to get the new declarations, but I think there's an option in Intellij to auto-build as you type.
e
it'd be nice to have something connected to/triggered by the code highlighting, because I wouldn't want the autobuild as I type
y
Hmmm, the ksp generation itself takes barely any time, so I wonder if there's a way to have it constantly update the sources in the background