expandtab
parent
3b91c6782d
commit
6ea5f2c675
|
|
@ -53,12 +53,19 @@ func editFile(p filetree.Path) string {
|
||||||
smartIndent: true,
|
smartIndent: true,
|
||||||
indentUnit: 3,
|
indentUnit: 3,
|
||||||
tabSize: 3,
|
tabSize: 3,
|
||||||
|
indentWithTabs: false,
|
||||||
lineWrapping: true,
|
lineWrapping: true,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
dragDrop: false,
|
dragDrop: false,
|
||||||
spellcheck: true,
|
spellcheck: true,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
autocapitalize: false,
|
autocapitalize: false,
|
||||||
|
extraKeys: {
|
||||||
|
Tab: (cm) => {
|
||||||
|
var spaces = Array(cm.getOption("indentUnit") + 1).join(" ");
|
||||||
|
cm.replaceSelection(spaces);
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
console.log(navigator.userAgent)
|
console.log(navigator.userAgent)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue