Snippet key shortcut stopped working in .200


#1

I have this in my snippets.cson file:

 '.source.js':
    'Console Log':
      'prefix':    'csl'
      'body':      'console.log($1);'
    'Log Debug':
      'prefix':    'ldb'
      'body':      '$log.debug($1);'
    'IFFE':
      'prefix':   'iffe'
      'body':     """
      (function() {

        'use strict';

        $1

      })();
      """

In .199 and earlier, I could type ldb and tab to get $log.debug()

Now it does nothing.

I invoked from the command menu, it still works. So it’s the shortcut that doesn’t work.


#2

Have you followed the suggestions in the Debugging document? Also, could you give the following information?

  • What OS and version are you running?
  • Can you reproduce the issue after completely exiting Atom and restarting using atom --safe?

Have you tried using the Keybinding Resolver (Cmd+. on OS X and Ctrl+. on other platforms)? It will show you what key Atom saw you press and the command that was triggered because of it.