Skip to content

Instantly share code, notes, and snippets.

@radiokills
Last active December 23, 2015 10:19
Show Gist options
  • Save radiokills/6621032 to your computer and use it in GitHub Desktop.
Save radiokills/6621032 to your computer and use it in GitHub Desktop.
Sublime put spaces around curly brackets
[
{ "keys": ["{"], "command": "insert_snippet", "args": {"contents": " { $0 }"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|$)", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "source.ruby" }
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment