Without modifying the source file, dynamically add some comments to the code, you can only see
已回答


请先登录再写评论。
Does anyone know how this is achieved please?
Hi,
Please check com.intellij.codeInsight.inlayProvider EP:
https://github.com/JetBrains/intellij-community/blob/master/platform/lang-api/src/com/intellij/codeInsight/hints/InlayHintsProvider.kt
and example implementations:
https://plugins.jetbrains.com/intellij-platform-explorer/extensions?extensions=com.intellij.codeInsight.inlayProvider
Ok, thanks, I'll try it out, thanks a lot