Is it possible to add custom buttons to the editor using a plugin?

Answered

Hi,

I want to add custom buttons to specific files, is it possible to do it using a plugin? I didn't find an obvious extension point to do it

Screenshot: 

If you know another plugin that does something similar, please let me know

Thank you

0
2 comments

Hi there,

have you tried using the UI inspector? You can e.g. click one of the buttons in the hover pane in combination with the keys defined for the action and it will show you all the necessary info for tracking down the necessary info.

The extension point com.intellij.editorFloatingToolbarProvider might be what you are looking for (see also https://plugins.jetbrains.com/intellij-platform-explorer/extensions?extensions=com.intellij.editorFloatingToolbarProvider).

0

Hi, Thank you very much for your help, I will see how to add my custom buttons using the mentioned extension

Cheers

0

Please sign in to leave a comment.