auto format on save for vsCode

this enables vscode to auto format files in the flutter project.
Also fixes a formatting error

enable formatting only for dart files


format settings.json
This commit is contained in:
Leptopoda 2021-10-08 19:53:01 +02:00
parent bb31257cc3
commit 5397d4ff14
No known key found for this signature in database
GPG Key ID: 661B059EDE309F11
3 changed files with 7 additions and 2 deletions

2
.gitignore vendored
View File

@ -318,7 +318,7 @@ CMakeLists.txt.user*
*.bak
# visual studio code
.vscode/
#.vscode/
# markdown temp files
*.md.Html

View File

@ -18,7 +18,7 @@
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
.vscode/
#.vscode/
# Visual Studio
.vs/

View File

@ -0,0 +1,5 @@
{
"[dart]": {
"editor.formatOnSave": true
}
}