mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 12:38:02 +00:00
7c8f62e943
# Problem I have a custom system-wide rustfmt configuration, and use tabs over spaces. So when I contribute to Zed, I will get lots of formatting errors. # Proposition - ~~Add rustfmt.toml (to specify that you are using the default rustfmt configuration, see https://github.com/rust-lang/cargo/issues/14442)~~ - Add `hard_tabs: false` to `.zed/settings.json` for people using tabs over spaces. Release Notes: - N/A --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
45 lines
874 B
JSON
45 lines
874 B
JSON
{
|
|
"languages": {
|
|
"Markdown": {
|
|
"tab_size": 2,
|
|
"formatter": "prettier"
|
|
},
|
|
"TOML": {
|
|
"formatter": "prettier",
|
|
"format_on_save": "off"
|
|
},
|
|
"YAML": {
|
|
"tab_size": 2,
|
|
"formatter": "prettier"
|
|
},
|
|
"JSON": {
|
|
"tab_size": 2,
|
|
"preferred_line_length": 100,
|
|
"formatter": "prettier"
|
|
},
|
|
"JSONC": {
|
|
"tab_size": 2,
|
|
"preferred_line_length": 100,
|
|
"formatter": "prettier"
|
|
},
|
|
"JavaScript": {
|
|
"tab_size": 2,
|
|
"formatter": "prettier"
|
|
},
|
|
"CSS": {
|
|
"tab_size": 2,
|
|
"formatter": "prettier"
|
|
},
|
|
"Rust": {
|
|
"tasks": {
|
|
"variables": {
|
|
"RUST_DEFAULT_PACKAGE_RUN": "zed"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"hard_tabs": false,
|
|
"formatter": "auto",
|
|
"remove_trailing_whitespace_on_save": true,
|
|
"ensure_final_newline_on_save": true
|
|
}
|