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
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -20,7 +20,7 @@
|
||||
.classpath
|
||||
.project
|
||||
.settings/
|
||||
.vscode/
|
||||
.vscode/*
|
||||
|
||||
# Flutter repo-specific
|
||||
/bin/cache/
|
||||
@@ -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
.vscode/settings.json
vendored
Normal file
11
.vscode/settings.json
vendored
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user