转到Sublime Text 2>首选项>密钥绑定 – 用户并将此JSON添加到文件中:
[ { "keys": ["alt+d"],"command": "insert_snippet","args": { "contents": "console.log(${1:}$SELECTION);${0}" } } ]
在当前光标位置上插入一个console.log().
参考:https://gist.github.com/harthur/2951063