/sublime-logger-snippets

silly snippets to insert logging commands

Sublime Text 2 Logging snippets

Type log and hit tab.

  • Coffee:console.log "thing:", thing
  • Rails controller:p "="*50 p "thing:", thing p "="*50
  • Ruby:p "thing:", thing
  • ERB:<%= "thing: #{thing}" %>

Javascript:

Type log <TAB> thing to get output of console.log('thing: ', thing)

Type logs <TAB> thing to get output of console.log('thing')

Type info <TAB> thing to get output of console.info('thing: ', thing)

Type infos <TAB> thing to get output of console.info('thing')