News‎ > ‎

Templates

posted Feb 15, 2012, 2:22 PM by Nikolay Krasko   [ updated Feb 25, 2012, 2:21 PM ]
Today I would like to present a new feature of creating haXe code in eclihx editor — templates, which is also called "snippets" in some IDE's.

The basic idea of templates is to produce most common code fragments instantly so that developer could focus on his task but not on the language syntax. 

A present implementation of templates in eclihx contains only basic functions but even so it is powerful enough to get a better experience of producing code in everyday work. Please, see the demo: 

On this video you can see how templates cooperates with built-in code formatter. It doesn't matter which code style you prefer, templates will try to adjust themselves in order to get code with expected formatting.

Another important thing is that the templates feature is smoothly integrated into eclipse. It means that you are able to activate them from the editor and from the special "Templates" view, customize a short activation string, change the body or add your favorite template.

You can install eclihx or update it to a new version using the trunk update site. Please refer to Installation notes to know how to do it.

I will be very glad to hear your feedback in Eclihx Google Group. Let's discuss possible ways for making templates and other features even more convenient and powerful! :)

P.S. Note that you can leave comments to this page after registration with google account.

 

Comments