First of all, make sure you have in your project folder a .vscode/settings.json file.

Format on Save

.vscode/settings.json
{
    // ...
    "editor.formatOnSave": true,
}

Code Actions on Save

.vscode/settings.json
{
    // ...
    "editor.codeActionsOnSave": {
        "source.fixAll": "explicit",
    },
}

File Nesting

Do you have a lot of code-generated files and want to hide them by default the project explorer?

.vscode/settings.json
{
    // ...
    "explorer.fileNesting.enabled": true,
    "explorer.fileNesting.expand": false,
    "explorer.fileNesting.patterns": {
        "pubspec.yaml": "pubspec.lock,pubspec_overrides.yaml,.packages,.flutter-plugins,.flutter-plugins-dependencies,.metadata",
        "*.dart": "${capture}.g.dart, ${capture}.freezed.dart",
    },
}