Skip to content

Commit 5d9b145

Browse files
authored
Stop VSCode from Formatting .gitmodules file on save (project-chip#35373)
* Stop VSCode from running Formatter on .gitmodules * associating .gitmodules with ini instead of plaintext
1 parent 1e1fe1e commit 5d9b145

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.vscode/settings.json

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"editor.defaultFormatter": "esbenp.prettier-vscode"
5151
},
5252
"files.associations": {
53+
".gitmodules": "ini",
5354
"*.mm": "cpp",
5455
"iostream": "cpp",
5556
"array": "cpp",
@@ -138,6 +139,9 @@
138139
"list": "cpp",
139140
"unordered_set": "cpp"
140141
},
142+
"[ini]": {
143+
"editor.formatOnSave": false
144+
},
141145
// Configure paths or glob patterns to exclude from file watching.
142146
"files.watcherExclude": {
143147
"**/.git/objects/**": true,

0 commit comments

Comments
 (0)