2020-12-22 23:37:44 -08:00
|
|
|
{
|
2021-01-31 21:55:25 -08:00
|
|
|
// General settings (notably including Javascript/Typescript).
|
|
|
|
"editor.detectIndentation": false,
|
|
|
|
"editor.tabSize": 2,
|
|
|
|
"editor.rulers": [
|
|
|
|
{
|
|
|
|
"column": 80,
|
|
|
|
"color": "#cc8888"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"editor.formatOnSave": true,
|
2021-02-22 13:54:16 -08:00
|
|
|
"editor.formatOnSaveMode": "modifications",
|
|
|
|
"editor.formatOnType": true,
|
|
|
|
"editor.formatOnPaste": true,
|
2021-01-31 21:55:25 -08:00
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
|
|
"editor.insertSpaces": true,
|
|
|
|
|
2021-02-22 13:54:16 -08:00
|
|
|
"[markdown]": {
|
|
|
|
"editor.tabSize": 4,
|
|
|
|
|
|
|
|
// I find Prettier's markdown style jarring, including converting `*`
|
|
|
|
// bullets to `-` and two-column indents. It's not customizable either.
|
|
|
|
// Don't use it.
|
2021-04-01 12:10:43 -07:00
|
|
|
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
|
2021-02-22 13:54:16 -08:00
|
|
|
},
|
|
|
|
|
2021-01-31 21:55:25 -08:00
|
|
|
// Rust-specific overrides.
|
|
|
|
"[rust]": {
|
|
|
|
"editor.tabSize": 4,
|
2020-12-22 23:37:44 -08:00
|
|
|
"editor.rulers": [
|
2021-01-31 21:55:25 -08:00
|
|
|
80,
|
|
|
|
{
|
|
|
|
"column": 100,
|
|
|
|
"color": "#cc8888"
|
|
|
|
}
|
2020-12-22 23:37:44 -08:00
|
|
|
],
|
2021-01-31 21:55:25 -08:00
|
|
|
|
2023-12-17 23:07:28 -08:00
|
|
|
"editor.defaultFormatter": "rust-lang.rust-analyzer"
|
2021-01-31 21:55:25 -08:00
|
|
|
},
|
2021-04-01 12:10:43 -07:00
|
|
|
"markdown.extension.list.indentationSize": "inherit",
|
2022-03-03 10:52:26 -08:00
|
|
|
"markdown.extension.toc.unorderedList.marker": "*",
|
|
|
|
|
|
|
|
// Specify the path to the workspace version of TypeScript. Note this only
|
|
|
|
// takes effect when workspace version is selected in the UI.
|
|
|
|
// https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-the-workspace-version-of-typescript
|
2023-12-17 23:07:28 -08:00
|
|
|
"typescript.tsdk": "./ui/node_modules/typescript/lib",
|
|
|
|
"cmake.configureOnOpen": false,
|
|
|
|
"vitest.enable": true
|
2021-01-31 21:55:25 -08:00
|
|
|
}
|