Dart-code: Formating doesn't respect editor.tabsize

Created on 29 May 2018  路  1Comment  路  Source: Dart-Code/Dart-Code

My user settings
"[dart]": { "editor.tabSize": 4, "editor.insertSpaces": true, "editor.detectIndentation": false },

The tabsize work while editing the file but every time I format the document using shortcut the document is formatted using tabsize 2 spaces.

duplicate

Most helpful comment

Unfortunately the standard dart formatter that Dart Code uses always uses two spaces and is not configurable:

https://github.com/dart-lang/dart_style

To change this, we'd need a new formatter (or for that one to become customisable, which seems very unlikely, since an explicit goal is to not have options).

I don't think a customisable formatter is an unreasonable request though, so please 馃憤 #914 if you'd like it, so we can get an idea of demand.

>All comments

Unfortunately the standard dart formatter that Dart Code uses always uses two spaces and is not configurable:

https://github.com/dart-lang/dart_style

To change this, we'd need a new formatter (or for that one to become customisable, which seems very unlikely, since an explicit goal is to not have options).

I don't think a customisable formatter is an unreasonable request though, so please 馃憤 #914 if you'd like it, so we can get an idea of demand.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FeimiSzy picture FeimiSzy  路  4Comments

DanTup picture DanTup  路  3Comments

DanTup picture DanTup  路  4Comments

jascodes picture jascodes  路  4Comments

atreeon picture atreeon  路  5Comments