python은 black formatter를 사용하고 있는데
dart는 무엇을 사용하면 좋을지 찾아보았다.
대부분 아래와 같은 설정을 하는 것 같다.
// settings.json
"[dart]": {
"editor.defaultFormatter": "Dart-Code.dart-code",
"editor.formatOnSave": true,
}
참고
https://stackoverflow.com/questions/64669962/is-there-a-way-to-auto-format-flutter-with-vscode
Is there a way to auto-format flutter with vscode?
I was wondering if there is a library like Eslint for Flutter/Dart that will automatically insert semicolons and trailing commas when I save the file. FLutter Version: 1.22.3 Dart Version: 2.10.3
stackoverflow.com
https://stackoverflow.com/questions/67380534/formatting-dart-files-flutter-in-vscode
Formatting .dart files (flutter) in vsCode
I can't seem to set the automatic formatter up. I have both the Dart and Flutter vsCode extensions. Here is my settings.json file: { "workbench.iconTheme": "material-icon-theme&quo...
stackoverflow.com
'Flutter' 카테고리의 다른 글
| [Flutter / Dart] 기초 지식 (0) | 2023.06.05 |
|---|---|
| [Flutter / GetX] Exception has occurred._CastError (Null check operator used on a null value) (0) | 2023.05.30 |
| [Flutter] lint / linter (0) | 2023.05.24 |
| [Flutter] Upgrader 사용법 (0) | 2023.05.10 |
| [Flutter] scroll listView with index (0) | 2023.05.09 |