Live template plugins?
Hi Guys,
Is there a way to package a new Live Template as a plugin, so "users"
just can just install it by copying a JAR file in the plugins
directory instead of copying a XML file in their
.IntelliJIdea/config/templates directory?
Alex
请先登录再写评论。
Sorry, but how is copying a jar file better than copying an XML file?
Alessandro Vernet wrote:
--
Erb
==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================
Erb,
I recognize that in most cases installing a live template by copying
it in .IntelliJIdea/config/templates is perfectly fine. But there are
situations where it would be nice to package templates in a plugin:
1) Using plugins is the most natural way to extend IntelliJ. Many
people know where to get a list of the available pluins, how to
install them, etc.
2) Developers can use Chris' Plugin Manager which makes installing and
managing plugins even simpler.
3) Plugins/extensions provider could package a set of live templates,
keymaps, code styles ... as part of the same plugin, making the
installation process simpler to the end-user (developer).
Alex
Erb wrote:
>> Hi Guys,
>>
>> Is there a way to package a new Live Template as a plugin, so "users"
>> just can just install it by copying a JAR file in the plugins
>> directory instead of copying a XML file in their
>> .IntelliJIdea/config/templates directory?
>>
>> Alex
>>