Add smartIndent to codemirror (#3810)

* add smartIndent config to codemirror

* add indentWithTabs config to codemirror

* make default tabSize same value as indentUnit

* make tab and enter do smart indentation
This commit is contained in:
Simon Huber
2019-03-02 14:46:10 +01:00
committed by Jeremy Ruston
parent a6875df7ef
commit 41e338dc41
4 changed files with 10 additions and 2 deletions

View File

@@ -11,5 +11,7 @@ type: json
"Alt-T": "transposeChars",
"Alt-U": "undoSelection",
"Shift-Alt-U": "redoSelection",
"Cmd-U": ""
"Cmd-U": "",
"Tab": "indentAuto()",
"Enter": "newLineAndIndent()"
}