Last Updated: February 25, 2016
·
290
· tleite

Quick way to add a Javascript debugger statement on Sublime Text

If you use Sublime Text to code Javascript, here is a shortcut to add a debugger statement:

Step 1: Go to Preferences > Key Bindings - User

Picture

Step 2: Add the following snippet

{"keys": ["ctrl+d"], "command": "insert_snippet","args": {"contents": "debugger"}}

That's it. Now when you press control + d, Sublime will insert debugger.