Reputation: 1
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
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