Skip to content

Instantly share code, notes, and snippets.

@ninadingole
Created August 20, 2017 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninadingole/e153a11fba9d64ff3ad23df0cf2a61df to your computer and use it in GitHub Desktop.
Save ninadingole/e153a11fba9d64ff3ad23df0cf2a61df to your computer and use it in GitHub Desktop.
Eclipse Code Templates
This gist contains all the template I create for my use
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="java" deleted="false" description="Setter and Getter" enabled="true" name="setget">private ${Type} ${field};&#13;
&#13;
public ${Type} get${Field}(){ return this.${field}; }&#13;
&#13;
public void set${Field}(${Type} ${field}) { this.${field} = ${field}; };</template></templates>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="java" deleted="false" description="" enabled="true" name="springprop">${:import(org.springframework.beans.factory.annotation.Value)}&#13;
@Value("$${${key}}")&#13;
private ${type} ${newName};</template></templates>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment