From 764822b7d29df40f1fe139819c17ca84cfee3df4 Mon Sep 17 00:00:00 2001 From: AlexBob <5199840@qq.com> Date: Tue, 25 Jun 2024 16:08:32 +0800 Subject: [PATCH] Editor config update for inline suggestions and format on save Enabled inline suggestions and set up code actions on save to fix ESLint issues explicitly. Also, specified esbenp.prettier-vscode as the default formatter and enabled format on save for consistent code formatting. --- ui/.vscode/settings.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/.vscode/settings.json b/ui/.vscode/settings.json index 8b1e4090..29149abb 100644 --- a/ui/.vscode/settings.json +++ b/ui/.vscode/settings.json @@ -16,5 +16,10 @@ "files.autoSave": "afterDelay", "angular.forceStrictTemplates": false, "editor.suggest.snippetsPreventQuickSuggestions": false, - "editor.inlineSuggest.enabled": true -} + "editor.inlineSuggest.enabled": true, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true +} \ No newline at end of file