Source

.emacs.d / vendor / yasnippet / snippets / scala-mode / if.else

1
2
3
4
5
6
7
8
9
# Author: Jonas Bonèr <jonas@jonasboner.com>
# name: if (cond) { .. } else { .. }
# key: if
# --
if (${1:condition}) {
  $2
} else {
  $0
}