mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-27 23:55:56 -05:00
4d4d78ba64
Add tables of contents (using the VS Code Markdown All-In-One extension) and reformat lists to consistently use 4-space indents. No content changes.
48 lines
1.3 KiB
JSON
48 lines
1.3 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"
|
|
}
|
|
],
|
|
|
|
// It seems like rust-analyzer is supposed to be able to format
|
|
// Rust files, but with "matklad.rust-analyzer" here, VS Code says
|
|
// "There is no formatter for 'rust' files installed."
|
|
"editor.defaultFormatter": "matklad.rust-analyzer"
|
|
//"editor.defaultFormatter": null
|
|
},
|
|
"rust-analyzer.inlayHints.enable": false,
|
|
"markdown.extension.list.indentationSize": "inherit",
|
|
"markdown.extension.toc.unorderedList.marker": "*"
|
|
}
|