1 2 3 4 5 6 7 8 9 10 11 12
# -*- mode: snippet -*- # name: try # key: try # uuid: try # condition: (not (sp-point-in-string-or-comment)) # -- try { $0 } catch (${1:Throwable} e) { ${2:System.out.println("Error " + e.getMessage()); e.printStackTrace();} }