mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-28 08:05:55 -05:00
50 lines
1.4 KiB
JSON
50 lines
1.4 KiB
JSON
{
|
|
// General settings (notably including Javascript/Typescript).
|
|
"editor.detectIndentation": false,
|
|
"editor.tabSize": 2,
|
|
"editor.rulers": [
|
|
{
|
|
"column": 80,
|
|
"color": "#cc8888"
|
|
}
|
|
],
|
|
"editor.formatOnSave": true,
|
|
"editor.formatOnSaveMode": "modifications",
|
|
"editor.formatOnType": true,
|
|
"editor.formatOnPaste": true,
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.insertSpaces": true,
|
|
|
|
"[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.
|
|
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
|
|
},
|
|
|
|
// Rust-specific overrides.
|
|
"[rust]": {
|
|
"editor.tabSize": 4,
|
|
"editor.rulers": [
|
|
80,
|
|
{
|
|
"column": 100,
|
|
"color": "#cc8888"
|
|
}
|
|
],
|
|
|
|
"editor.defaultFormatter": "rust-lang.rust-analyzer"
|
|
},
|
|
"markdown.extension.list.indentationSize": "inherit",
|
|
"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
|
|
"typescript.tsdk": "./ui/node_modules/typescript/lib",
|
|
"cmake.configureOnOpen": false,
|
|
"vitest.enable": true
|
|
}
|