Community
Participate
Working Groups
I'd like to suggest the possibility to change the case for inserted variables. I came accross this when creating a custom template for "property": // [start]property ${newName} private ${type} ${newName}; public ${type} get${newName}() { return ${newName}; } public void set${newName}(${type} ${newName}) { this.${newName} = ${newName}; } // [end] ${cursor} This property template generates a block for a single property + it's getters and setters. The commentline is for the excellent coffeebytes code folding plugin, which I've configured to collapse the user-defined region "property". Back to the important stuff :) As you can see this template would generate setmyProperty instead of setMyProperty. I suggest the following solution: if you use: ${NewName} (or any other case-changed variable), it would generate the same casing. ${NEWNAME} would generate all upper-case, and ${NEW_NAME} would generator MY_PROPERTY. Another solution would be an extra marker that specifies the casing in text, something like : ${newName|camel} and ${newName|upper}, but I thing the first one is more intuitive.
*** This bug has been marked as a duplicate of bug 120420 ***