Archive for 2 January 2015

Live template in IntelliJ IDEA to generate static class-level Logger variable

This reduces the keystrokes needed to introduce a logger variable in your class to simply typing ‘log’ and pressing [Tab] in the declaration block of your class. Head over to Project Settings > Live Templates and then add a new template to the ‘plain’ group. Assign the following values: abbreviation: log description: private static final [...]