追加したテンプレート
設定 -> Java -> エディター -> テンプレート
- 名前
- 記述
パターン
- fordir
- list files in the target directory
for (File ${file:newName(java.io.File)} : new File(${dirname:var(java.lang.String)}).listFiles()) { if (!${file}.getName().endsWith(".${ext}")) { continue; } ${cursor} }
- newal
- create new ArrayList object
List<${type}> ${list:newName(java.util.ArrayList)} = new ArrayList<${type}>(${});
- newhm
- create new HashMap object
Map<${keyType}, ${valueType}> ${map:newName(java.util.HashMap)} = new HashMap<${keyType}, ${valueType}>(${});
- newhs
- create new HashSet object
Set<${type}> ${set:newName(java.util.HashSet)} = new HashSet<${type}>(${});
- newlhm
- create new LinkedHashMap object
Map<${keyType}, ${valueType}> ${map:newName(java.util.LinkedHashMap)} = new LinkedHashMap<${keyType}, ${valueType}>(${});
- newlhs
- create new LinkedHashSet object
Set<${type}> ${set:newName(java.util.LinkedHashSet)} = new LinkedHashSet<${type}>(${});
- newsb
- create new StringBuffer object
StringBuffer ${sb:newName(StringBuffer)} = new StringBuffer();