2015-03-19, 09:31
I have the following packages installed:
In combination with this keymap:
PHP Code:
"installed_packages":
[
"GitGutter",
"Hooks",
"Indent XML",
"Package Control"
]
In combination with this keymap:
PHP Code:
[
// Move cursor to end of tag with Enter (xml only)
{ "keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "following_text", "operator": "regex_contains", "operand": "^[>)'\"\\]]", "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "selector", "operator": "equal", "operand": "text.xml" }
]
},
// Replace = with ="" and move cursor (xml only)
{ "keys": ["="], "command": "insert_snippet", "args": {"contents": "=\"$0\""}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.xml" }
]
},
// Create tag when < is typed (xml only)
{ "keys": ["<"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" }, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.xml" }
]
},
// Reindent
{ "keys": ["ctrl+alt+r"], "command": "reindent" },
]