Additional text information in line

Answered

Hi,

I'm looking how to implement in plugin a logic responsible for presenting addidtional information in code or html line.

It works in IDEA when debugging session is active, presenting evaluated values. See below:

It's also implemented in git plugin to display "blame" on active lines.

Any hints? :)

Maciej.

2 comments
Comment actions Permalink

The area is called "Editor Gutter". Adding icons is done via LineMarkerProvider usually https://plugins.jetbrains.com/docs/intellij/line-marker-provider.html

 

Text contents are added via com.intellij.openapi.editor.TextAnnotationGutterProvider

1
Comment actions Permalink

Thanks Yann Cebron!

I've made more research in debugger code and looks like EditorLinePainter allows extending editor line (e.g. add additional text).

0

Please sign in to leave a comment.