VSCode not respecting tab size when formatting a Dart file VSCode not respecting tab size when formatting a Dart file dart dart

VSCode not respecting tab size when formatting a Dart file


This is a limitation of the Dart plugin for VS Code. It uses the official dart_style formatter which only supports formatting with spaces (the same as running dartfmt).

If you'd like to see a more flexible formatter, please put a ThumbsUp on this GitHub issue:

https://github.com/Dart-Code/Dart-Code/issues/914