My VSCode settings for dart language - flutter 120 line length in JSON file

Β·

1 min read

To open VSCode settings in JSON format, use the following command: ctrl + shift + p and type "user settings json".

​{
  "dart.lineLength": 120,
  "[dart]": {
    "editor.rulers": [120],
    "editor.codeActionsOnSave": {
      "source.fixAll": "explicit"
    },
    "editor.formatOnSave": true
  },
  "dart.flutterHotReloadOnSave": "all",
  "dart.hotReloadOnSave": "all",
  "dart.debugExternalPackageLibraries": false,
  "dart.debugSdkLibraries": false,
  "dart.additionalAnalyzerFileExtensions": ["./analysis_options.yaml"]
}