Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Created May 17, 2012 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ttscoff/2717808 to your computer and use it in GitHub Desktop.
Save ttscoff/2717808 to your computer and use it in GitHub Desktop.
TextMate CSS {...} on Cmd-Enter for Sublime Text 2
[
{ "keys": ["super+enter"], "command": "insert_snippet", "args": {"contents": " {\n $0\n}"}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
}
]
@ttscoff
Copy link
Author

ttscoff commented May 17, 2012

Add it in Preferences->Key Bindings - User. If you already have key definitions in there, leave out the starting and ending square brackets and insert the remainder into the existing brackets in the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment