2020-12-23 02:37:44 -05:00
|
|
|
{
|
2021-02-01 00:55:25 -05: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 16:54:16 -05:00
|
|
|
"editor.formatOnSaveMode": "modifications",
|
|
|
|
"editor.formatOnType": true,
|
|
|
|
"editor.formatOnPaste": true,
|
2021-02-01 00:55:25 -05:00
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
|
|
"editor.insertSpaces": true,
|
|
|
|
|
2021-02-22 16:54:16 -05: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 15:10:43 -04:00
|
|
|
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
|
2021-02-22 16:54:16 -05:00
|
|
|
},
|
|
|
|
|
2021-02-01 00:55:25 -05:00
|
|
|
// Rust-specific overrides.
|
|
|
|
"[rust]": {
|
|
|
|
"editor.tabSize": 4,
|
2020-12-23 02:37:44 -05:00
|
|
|
"editor.rulers": [
|
2021-02-01 00:55:25 -05:00
|
|
|
80,
|
|
|
|
{
|
|
|
|
"column": 100,
|
|
|
|
"color": "#cc8888"
|
|
|
|
}
|
2020-12-23 02:37:44 -05:00
|
|
|
],
|
2021-02-01 00:55:25 -05:00
|
|
|
|
|
|
|
// 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
|
|
|
|
},
|
2021-04-01 15:10:43 -04:00
|
|
|
"rust-analyzer.inlayHints.enable": false,
|
|
|
|
"markdown.extension.list.indentationSize": "inherit",
|
|
|
|
"markdown.extension.toc.unorderedList.marker": "*"
|
2021-02-01 00:55:25 -05:00
|
|
|
}
|