Reputation: 1158
When using Kotlin 1.4.32
in IntelliJ 2021.1.1
, there are a lot of @sample
implementations in Kotlin's Kdoc. However, these are not clickable in IntelliJ.
For example, the kotlin.properties.Delegates#observable
has a reference to an unresolved samples.properties.Delegates.observableDelegate
sample.
The stdlib
samples can be found here https://github.com/JetBrains/kotlin/tree/master/libraries/stdlib/samples, but I haven't figured a way to get the samples on the classpath so that I can click these in IntelliJ.
Upvotes: 6
Views: 682
Reputation: 23091
As Alexey Belkov from JetBrains said in the comments, it's not supported in IntelliJ right now.
They are not "effectively useless" however, because the samples are executable from the online documentation. For example, here's map()
.
Upvotes: 3