sublime换行无法自动缩进

 Preferences->Key Bindings->user->编辑文档

输入

//解决换行无法自动缩进的问题
{ "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": "^

 

 

你可能感兴趣的:(Web,FrontEnd,Code,Editor,sublime,sublime换行自动缩进,sublime缩进)