forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable formatting on save for Dart and HTML files (flutter#122048)
* 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
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |