Custom button in line number bar

Answered


Is there an API in idea to add a custom button to the line number bar? For example: Add a "+" button to the line number column of a Java file, and click it to pop up a customized pop-up box.

0
3 comments

Hi,

I'm not sure what you exactly mean. Do you want it to be visible always or on hover? What is the full use case? Why do you need it? Could you please provide some wireframes?

0

like this:https://www.jetbrains.com/idea/guide/assets/inline-comment-bea332fb.png

When my mouse is placed on line 10, a "+" button appears in the line number bar. Clicking this button will display the window to the right of line 10.

0

Do I understand it correctly, that you want to implement code reviews for a custom service?

If this is the case, then check the APIs in: https://github.com/JetBrains/intellij-community/tree/master/platform/collaboration-tools

Techniques to explore APIs: https://plugins.jetbrains.com/docs/intellij/explore-api.html 

0

Please sign in to leave a comment.