Skip to content

Commit

Permalink
Disable formatting on save for Dart and HTML files (flutter#122048)
Browse files Browse the repository at this point in the history
* Remove "format on save" and "format on type" from directory settings
* Also turn off HTML formatting
  • Loading branch information
Tim Sneath authored Mar 14, 2023
1 parent 9449c4c commit 47c0723
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.classpath
.project
.settings/
.vscode/
.vscode/*

# Flutter repo-specific
/bin/cache/
Expand Down Expand Up @@ -130,3 +130,4 @@ app.*.symbols
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock
!.vscode/settings.json
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// VSCode workspace settings that are shared among all users of this project.
// This only affects subdirectories of this project.
{
// VSCode formats files on save by default. Since Flutter source code is
// hand-formatted, the default settings are changed to prevent inadvertent
// reformatting of code.
"editor.formatOnSave": false,
"editor.formatOnType": false,

"html.format.enable": false
}

0 comments on commit 47c0723

Please sign in to comment.