|
5 | 5 | // https://github.com/BesLogic/shared-configs/blob/main/.vscode/settings.json |
6 | 6 | // Modifications to this file that are not project-specific should also be done upstream. |
7 | 7 | { |
8 | | - "json.schemas": [ |
9 | | - { |
10 | | - // Not all .jsonc files have a pre-associated schema |
11 | | - "fileMatch": [ |
12 | | - "*.jsonc", |
13 | | - ], |
14 | | - "schema": { |
15 | | - "allowTrailingCommas": true, |
16 | | - }, |
| 8 | + "json.schemas": [{ |
| 9 | + // Not all .jsonc files have a pre-associated schema |
| 10 | + "fileMatch": ["*.jsonc"], |
| 11 | + "schema": { |
| 12 | + "allowTrailingCommas": true, |
17 | 13 | }, |
18 | | - ], |
| 14 | + }], |
19 | 15 | "files.associations": { |
20 | 16 | // Qt Creator |
21 | 17 | "*.qrc": "xml", |
|
64 | 60 | // IDEM, but also it's annoying to remove imports because of commented code while testing |
65 | 61 | "source.removeUnusedImports": "never", |
66 | 62 | }, |
| 63 | + |
67 | 64 | // NOTE: due to a bug in VSCode, we have to specify editor.defaultFormatter individually to ensure |
68 | 65 | // it overrides user settings. Please upvote: https://github.com/microsoft/vscode/issues/168411 |
| 66 | + |
69 | 67 | /* |
70 | 68 | * Markdown |
71 | 69 | */ |
72 | 70 | "[markdown]": { |
73 | 71 | "files.trimTrailingWhitespace": false, |
74 | | - "editor.defaultFormatter": "vscode.markdown-language-features", |
| 72 | + "editor.defaultFormatter": "dprint.dprint", |
75 | 73 | }, |
| 74 | + |
76 | 75 | /* |
77 | 76 | * JSON |
78 | 77 | */ |
79 | 78 | "[json]": { |
80 | | - "editor.defaultFormatter": "vscode.json-language-features", |
| 79 | + "editor.defaultFormatter": "dprint.dprint", |
81 | 80 | }, |
82 | 81 | "[jsonc]": { |
83 | | - "editor.defaultFormatter": "vscode.json-language-features", |
| 82 | + "editor.defaultFormatter": "dprint.dprint", |
84 | 83 | }, |
| 84 | + |
85 | 85 | /* |
86 | 86 | * Python |
87 | 87 | */ |
|
111 | 111 | "ruff.organizeImports": true, |
112 | 112 | // Use the Ruff extension instead |
113 | 113 | "isort.check": false, |
| 114 | + |
114 | 115 | /* |
115 | 116 | * TOML |
116 | 117 | */ |
|
134 | 135 | "evenBetterToml.formatter.trailingNewline": true, |
135 | 136 | // We like keeping TOML keys in a certain non-alphabetical order that feels more natural |
136 | 137 | "evenBetterToml.formatter.reorderKeys": false, |
| 138 | + |
137 | 139 | /* |
138 | 140 | * YAML |
139 | 141 | */ |
140 | 142 | "[yaml]": { |
141 | | - "editor.defaultFormatter": "redhat.vscode-yaml", |
| 143 | + "editor.defaultFormatter": "dprint.dprint", |
142 | 144 | }, |
143 | 145 | "yaml.schemas": { |
144 | 146 | "https://json.schemastore.org/github-issue-config.json": ".github/ISSUE_TEMPLATE/config.yml", |
145 | 147 | }, |
| 148 | + |
146 | 149 | /* |
147 | 150 | * XML |
148 | 151 | */ |
|
167 | 170 | // Custom |
168 | 171 | "string", |
169 | 172 | ], |
| 173 | + |
170 | 174 | /* |
171 | 175 | * Powershell |
172 | 176 | */ |
|
0 commit comments