How to create custom live template functions?

已回答

Hi,

I'm trying to use live templates in my plugin, however I would need to have my own custom variable functions (such as these). I found a post on here saying to use the Macro class and MacroFactory.register(), however that post was from 2007 and it seems the register method doesn't exist anymore.

Can someone please advise me on how I can make variable functions, even though to my understanding they aren't OpenAPI?

Thanks,
Alex

0

You can register your custom com.intellij.codeInsight.template.Macro implementation via extension point `com.intellij.liveTemplateMacro`

0
Avatar
Permanently deleted user

Thank you

0

请先登录再写评论。