Are macros for text fields available for plugin usage?

Answered

When you create an node.js debugging setup, you can apply macros by clicking the + button next to some fields:


Is that easily available for external plugin authors



for example for script parameters above it would be great to be able to use $FilePathRelativeToProjectRoot$ but as the perl plugin seems to be now that isn't possible.  Is that something the perl plugin author has to create themself or can they just tag the text field a certain way to get that functionality for free?

0
4 comments

To provide custom Macros, use EP com.intellij.ide.macro.Macro

0

I'm looking to use the macros that are built in such as $FilePathRelativeToProjectRoot$, not any custom ones.

0

see com.intellij.ide.macro.MacrosDialog#addTextFieldExtension(com.intellij.ui.components.fields.ExtendableTextField)

0

Please sign in to leave a comment.