From fc9195c9ce1455a661b1369dd8badf9582c4b5e7 Mon Sep 17 00:00:00 2001 From: Luiz Gonzaga dos Santos Filho Date: Sat, 12 Dec 2015 16:31:10 -0200 Subject: [PATCH] Add simpler arrow function snippet Not only `af` is 1 less keystroke, and the keys are very close (home row of the keyboard). `=` + `shift` + `.` (`=>`) are too far away from each other and takes too long to type :) --- snippets/javascript/javascript.es6.snippets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snippets/javascript/javascript.es6.snippets b/snippets/javascript/javascript.es6.snippets index 0d9e8c3..e1873c5 100644 --- a/snippets/javascript/javascript.es6.snippets +++ b/snippets/javascript/javascript.es6.snippets @@ -16,6 +16,10 @@ snippet => (${0}) => { ${1} } +snippet af + (${0}) => { + ${1} + } snippet sym const ${0} = Symbol('${1}'); snippet ed