Sadka
Sadka

Reputation: 1

VScode document formatter is not working for Dart/Flutter

I am trying to format code in VScode by using shift + alt + f , also I tried using right click "document format" but still no success.

Upvotes: 0

Views: 1468

Answers (1)

adrsh23
adrsh23

Reputation: 260

"[dart]": {
   "editor.defaultFormatter": "Dart-Code.dart-code",
   "editor.formatOnSave": true
},

Add this to your settings.json file, after this ctrl+s will format your code.

Upvotes: 2

Related Questions