From 8e65ec10222d1e4a1f14f36a8d10adaed7bbd3f3 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Tue, 14 Jan 2025 13:47:22 +0200 Subject: [PATCH] Disable Prettier for C projects by default (#23119) Follow-up of https://github.com/zed-industries/zed/pull/23112 Same reasoning applies. Release Notes: - Changed default formatter for C to be the primary language server, not Prettier. Format-on-save is still disabled by default for C, but if one uses the editor: format command now, it will default to the language server. clangd can format C files, whereas prettier cannot. --- assets/settings/default.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/settings/default.json b/assets/settings/default.json index 4a71636e065bf..d846a5d43ff93 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -974,7 +974,10 @@ }, "C": { "format_on_save": "off", - "use_on_type_format": false + "use_on_type_format": false, + "prettier": { + "allowed": false + } }, "C++": { "format_on_save": "off",