From e79de321bcbf55c47acbd170df6b6dbb08417f4f Mon Sep 17 00:00:00 2001 From: Ignatius Aditya Setyadi Date: Sun, 17 Dec 2023 19:16:01 +0700 Subject: [PATCH] fix: prettier messes with tailwind css class When editing the global.css file, Prettier automatically formats the code from `md:text-5xl` to `md: text-5xl`, adding a space after a single colon. This behavior is not desired. --- .vscode/settings.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 23e2aa6bf..a775463ca 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,6 +5,7 @@ "editor.codeActionsOnSave": { "source.fixAll": "explicit" }, + "[css]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, // Tailwind CSS Autocomplete, add more if used in projects "tailwindCSS.classAttributes": [ "class",