解决 sublime Text 3 HTML标签直接按回车不插入空行
一、换行光标在两个标签之间无法自动缩进的问题,如图:
按回车,仅仅是单纯换行
1.解决方法:打开首选项-<按键绑定-用户
加入以下代码:
{ “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”, “oper