See #894. Set default tabLength to 4 and softTabs to true
This commit is contained in:
parent
dfacbf0103
commit
36f09d0719
508
docs/options.md
508
docs/options.md
File diff suppressed because it is too large
Load Diff
|
@ -117,8 +117,8 @@ module.exports = class Beautifiers extends EventEmitter
|
|||
options = require('../options.json')
|
||||
options = _.mapValues(options, (lang) ->
|
||||
scope = lang.scope
|
||||
tabLength = atom?.config.get('editor.tabLength', scope: scope)
|
||||
softTabs = atom?.config.get('editor.softTabs', scope: scope)
|
||||
tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 4
|
||||
softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true
|
||||
defaultIndentSize = (if softTabs then tabLength else 1)
|
||||
defaultIndentChar = (if softTabs then " " else "\t")
|
||||
defaultIndentWithTabs = not softTabs
|
||||
|
|
Loading…
Reference in New Issue