鼠標右鍵sublime 以管理員身份運行 打開首選項里面的按鍵綁定用戶 將下面的代碼粘貼復制
{ "keys": ["enter"], "command": "auto_indent_tag", "context": [ { "key": "setting.auto_indent", "operator": "equal", "operand": true }, { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, { "key": "selector", "operator": "equal", "operand": "punctuation.definition.tag.begin", "match_all": true }, { "key": "preceding_text", "operator": "regex_contains", "operand": ">$", "match_all": true }, { "key": "following_text", "operator": "regex_contains", "operand": "^</", "match_all": true }, ] }, { "keys": ["tab"], "command": "reindent", "context": [ { "key": "setting.auto_indent", "operator": "equal", "operand": true }, { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, { "key": "preceding_text", "operator": "regex_match", "operand": "^$", "match_all": true }, { "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true } ] }