Is it possible to create (a plugin that that provides) a custom macro in File > Settings > Tools > External Tools > Create Tool > Insert Macro ?
I see that all macros there extend com.intellij.ide.macro.Macro and I already created myne to extend it as well. However there should be a way to register it to be displayed in the UI.
The problem is that the default macros are registered within MacroManager.registerMacro() which is a private method and I can not use it. Perhaps I have to use plugin.xml somehow?