eclipse - create a custom shortcut to generate the getter and setter -
i know traditional way in windows generate getter , setter of attributes in class: highlighting fields --> right click --> source --> generate getters , setters there anyway create own shortcut that? what should enter name , pattern in case? java editor templates aren't powerful following best pattern come with. name / description referencing template can anything. public ${type} get${variable}() { return this.${variable}; } public void set${variable}(${type} ${variable}) { this.${variable} = ${variable}; } to use in open java editor . . . ctrl+space --> select name of template (or start typing template name autocomplete) --> enter variable type --> tab --> enter uppercase variable name --> tab --> enter lowercase variable name --> enter or tab the upper/lower case names there follow java naming conventions. there no substring or default functions can find process variable text, otherwise you'd have enter variabl