{"id":2718,"date":"2015-09-28T08:33:33","date_gmt":"2015-09-28T08:33:33","guid":{"rendered":"http:\/\/gluonhq.com\/?p=2718"},"modified":"2015-12-11T01:03:31","modified_gmt":"2015-12-11T01:03:31","slug":"javafx-live-templates-for-intellij-idea","status":"publish","type":"post","link":"https:\/\/gluonhq.com\/javafx-live-templates-for-intellij-idea\/","title":{"rendered":"JavaFX Live Templates for IntelliJ IDEA"},"content":{"rendered":"
In short, a live template specifies an abbreviation that you may type into your IDE that auto-completes a large chunk of code for you. We have defined live templates for IntelliJ IDEA to create JavaFX properties, including getters, setters, and the property method, and we have done this with support for all property types, and both read-only and read\/write properties. This is a huge productivity boost for us, and we hope it might be for you too.<\/p>\n We know that IntelliJ can already create methods from a property (simply via the alt-insert shortcut) when you have specified the property, but there are two problems with this:<\/p>\nA number of the team at Gluon are fans of IntelliJ IDEA (although not all of us – other team members use Eclipse and NetBeans too – which might explain why we have Gluon IDE tooling for all three major IDEs<\/a>). We are constantly exploring the various corners of IntelliJ IDEA, and this week we really liked finding the support for adding ‘live templates’. We decided to try our hand at defining our own, and we are very pleased with how well they work!<\/p>\n
\n