Category Archives: brackets

brackets can not auto-indent and break line when close tags solution

mac:file–>preference–>brackets.json

add those lines can be solved:

"closeBrackets": true,
"closeTags": {
"whenOpening": true, ## customersize ,according yourself,true|false
"whenClosing": true,
"dontCloseTags": ["br", "hr", "img", "input", "link", "meta", "area", "base", "col", "command", "embed", "keygen", "param", "source", "track", "wbr"],
"indentTags": ["ul", "ol", "div", "section", "table", "tr","html","head","title","body"]
}

以上是解决brackets自动close-tags后 光标不自动缩进并换行的问题。