Add a custom Live-Template macro
Hi community,
i try to add a custom live template macro.
i found this post: http://stackoverflow.com/questions/12156205/how-can-i-add-custom-expression-functions-for-live-templates-in-intellij
and an easy example for the existing CapitalizeMacro: https://github.com/JetBrains/intellij-community/blob/3f7e93e20b7e79ba389adf593b3b59e46a3e01d1/platform/lang-impl/src/com/intellij/codeInsight/template/macro/CapitalizeMacro.java
i want a macro that rewrite the given string (dashed) into camelCase
example:
foo-bar become fooBar
i think i can write a little macro based on the example from CapitalizeMacro.
BUT. my question is, how can i get this custom macro into my PHPStorm? i am working on a windows machine.
Thanks for Help
Please sign in to leave a comment.
You need to develop a plugin. See https://confluence.jetbrains.com/display/IDEADEV/PluginDevelopment, http://confluence.jetbrains.com/display/PhpStorm/Plugin+Development.
I'd suggest using Open API and Plugin Development forum (https://devnet.jetbrains.com/community/idea/open_api_and_plugin_development?view=discussions&start=0) for plugins-related questions