From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_DBL_BLOCKED_OPENDNS, URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=new2025; t=1765823002; bh=1tI7KbevdYKSd4IcCOibJkMT4n2Khb0kc5CU94Bt9XY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Message-ID:Date:From: Reply-To:Subject:To:Cc:In-Reply-To:References:Resent-Date: Resent-From:Resent-To:Resent-Cc:User-Agent:Content-Type: Content-Transfer-Encoding; b=J3b21Ld+IGIBmsEMVU3kBcmCF3+WAuE9Ep1fQl6DDkrE31uzE4k7iLLNyomprm+oM F/s4xSQZaeLD+2fxZ9cf732O0EwvMW1MFNBqeUn5e7N6vkScXxdMUZj3ADz8DCyPG2 QIDhZsxHLtZQL2O4c8oPXNlKaIAuYT+egCqzk6FfRIGPST/4H29i3GZGVdUpsEE6rW 2HrIrjRBapKUVv9OwKuuwfm2ZugUVpBW4mtxZUtYYVV9T1kAl2fnaaUczSamCFNv7s Q4O4/FqGzWbtQjdCQHSV5lUsvIR7GaqreUwbPnNtv7J5BR/N4ZR6loCSd6x+NQxYqC 1Bs69OkOpB0AA== Received: from kanazawa.tail3212ad.ts.net (unknown [125.165.188.218]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id 39C9F3204DBD; Mon, 15 Dec 2025 18:23:21 +0000 (UTC) From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v1 1/4] .vscode: add some C/C++ extension settings Date: Tue, 16 Dec 2025 01:23:03 +0700 Message-ID: <20251215182308.48766-2-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251215182308.48766-1-kiizuha@gnuweeb.org> References: <20251215182308.48766-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Added some settings in .vscode/settings.json, below are the explanations: **files.trimTrailingWhitespace** Remove trailing whitespace on save. **files.insertFinalNewline** Ensure file ends with a newline on save even there is already a newline. **files.trimFinalNewlines** Remove final newlines at the end of file on save, this will ensure there is only a single newline at the end of file. **files.eol** Set default end of line character to LF, not CRLF, this is the best practice to make diff view cleaner. **C_Cpp.inlayHints.parameterNames.enabled** **C_Cpp.inlayHints.autoDeclarationTypes.enabled** **C_Cpp.inlayHints.referenceOperator.enabled** These 3 aboves enable inlay hints for better code readability. **C_Cpp.clang_format_fallbackStyle** This one force VSCode workspace settings to use existing coding style. Signed-off-by: Muhammad Rizki --- .vscode/settings.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ccd2c39..6452454 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,6 +3,10 @@ "editor.insertSpaces": false, "editor.detectIndentation": false, "editor.rulers": [80], + "files.trimTrailingWhitespace": true, + "files.insertFinalNewline": true, + "files.trimFinalNewlines": true, + "files.eol": "\n", "files.associations": { "string_view": "cpp", "thread": "cpp", @@ -58,5 +62,9 @@ "typeinfo": "cpp", "curl.h": "c" }, - "C_Cpp.errorSquiggles": "disabled" + "C_Cpp.errorSquiggles": "disabled", + "C_Cpp.inlayHints.parameterNames.enabled": true, + "C_Cpp.inlayHints.autoDeclarationTypes.enabled": true, + "C_Cpp.inlayHints.referenceOperator.enabled": true, + "C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Visual Studio, IndentWidth: 8 }" } -- Muhammad Rizki