Skip to content

Commit

Permalink
Stop VSCode from Formatting .gitmodules file on save (#35373)
Browse files Browse the repository at this point in the history
* Stop VSCode from running Formatter on .gitmodules

* associating .gitmodules with ini instead of plaintext
  • Loading branch information
Alami-Amine authored Sep 4, 2024
1 parent 1e1fe1e commit 5d9b145
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
".gitmodules": "ini",
"*.mm": "cpp",
"iostream": "cpp",
"array": "cpp",
Expand Down Expand Up @@ -138,6 +139,9 @@
"list": "cpp",
"unordered_set": "cpp"
},
"[ini]": {
"editor.formatOnSave": false
},
// Configure paths or glob patterns to exclude from file watching.
"files.watcherExclude": {
"**/.git/objects/**": true,
Expand Down

0 comments on commit 5d9b145

Please sign in to comment.