/javascript-mode/commons_ife

http://github.com/ridgetang/snippets · #! · 11 lines · 10 code · 1 blank · 0 comment · 0 complexity · c42fe2cf5477a13c66429cfb72f70508 MD5 · raw file

  1. # name : if...else...
  2. # key : ife
  3. # group : commons
  4. # contributor : crazycode@gmail.com
  5. # This was cloned from a TextMate bundle for yasnippet.
  6. # --
  7. if (${1:true}) {
  8. `yas/selected-text`$0
  9. } else {
  10. };