How to add an icon like this in the editor?

Answered

what should I do

0
1 comment

It's handled with an inlay hint. Check the IntelliJ Platform Explorer: com.intellij.codeInsight.inlayProvider for some of the existing implementation examples.

https://plugins.jetbrains.com/intellij-platform-explorer?extensions=com.intellij.codeInsight.inlayProvider

1

Please sign in to leave a comment.