q_urow
Last Updated: February 25, 2016
·
1.457K
· aidanthreadgold

Add backticks around selected text on Sublime

Just add the below to your user key bindings in Sublime Text 2.

{ "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`${0:$SELECTION}`"}, "context":
    [
        { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
        { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
    ]
}