Skip to content

Instantly share code, notes, and snippets.

@zszugyi
Created December 4, 2011 18:04
Show Gist options
  • Select an option

  • Save zszugyi/1430850 to your computer and use it in GitHub Desktop.

Select an option

Save zszugyi/1430850 to your computer and use it in GitHub Desktop.
sublime_text2 command to wrap the current selection with '#{' and '}' when '#' is pressed
{ "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 }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment