Sunrise in the fog

    Adding Key Bindings to Sublime Text

    Key bindings are pretty great, and I rely on them all the time. So it's lucky for me that sublime allows for adding custom key bindings - and they're pretty easy to add. 

    One key binding I have is to add an image tag (with `src`, `srcset`, and `alt` attributes). So how do we add that? On a Macbook, we click on the main "Sublime Text" menu item, then under the "Preferences" submenu we select "Key Bindings". It's a JSON file, with an array of key binding objects. There's a couple of properties each need:

    Alright, here's a snippet of what the entire key bindings file would like like with just that one key binding:

    [gist src=https://gist.github.com/benrgreene/237bba7ee4b46a85ad6cecf2719f0dd5 file=key-bindings.json][/gist]