Are macros for text fields available for plugin usage?

已回答

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

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

请先登录再写评论。