Someone knows how to do it?
# announcements
z
Someone knows how to do it?
s
not kotlin related, but with your cursor in the multiline string, hit
alt+enter
and select Inject language or reference
z
Are you sure there's no annotation or something to trigger this? Maybe I just dreamed it 😄
s
Hmm, there definitely actually is, I can’t quite remember what the annotation is though
z
@Language("JSON")
s
Looks like it’s just
@Language
org.intellij.lang.annotations.Language
z
IntelliJ even suggests it 😄
s
nice
z
thanks! Sorry it's not actually Kotlin related 😄
s
try #C09222272 for all your general IntelliJ needs 😛
I personally don’t mind it all that much, but I try to nudge people over before someone who does take it personally starts complaining
z
😄 I don't mind it either if it's one OT message a day bit things escalate really quickly I think. I thought this was something about Kotlin tbh (which now that I think about it doesn't make sense 😄 )