Disable formatting on save for Dart and HTML files (#122048)
* Remove "format on save" and "format on type" from directory settings
* Also turn off HTML formatting
diff --git a/.gitignore b/.gitignore
index ad69aad..9a78642 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,7 +20,7 @@
.classpath
.project
.settings/
-.vscode/
+.vscode/*
# Flutter repo-specific
/bin/cache/
@@ -130,3 +130,4 @@
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock
+!.vscode/settings.json
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..6613273
--- /dev/null
+++ b/.vscode/settings.json
@@ -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
+}
\ No newline at end of file