How to add a button (AnAction) to the gutter menu that is called by clicking on the green arrow next to the class name and line number (Android Studio)? Or what is the name of the group where these actions are located (aka RunContextGroup from ExecutionActions.xml)?
Hi, Alex!
You can look at the article Execution | IntelliJ Platform Plugin SDK, I home there is what you’re looking for.
It should be done with some configuration / run types, I just lost my snippets to remember.
Or you can use UI Inspector and try to register the action through the plugin.xml, but I think it would be better to use configuration / run type
Hi, Dmitrii!
Configuration can only solve specific cases for my task. A separate action in plugin.xml is more suitable for us, but so far I have not been able to find a suitable group (like RunContextGroup).
This menu does not support actions, you cannot add those there
Is there any way to change the implementation of this menu?
You should use runConfigurationProducer
extensions to add new run options there:
See how other plugins do this: