From: Muhammad Rizki <kiizuha@gnuweeb.org>
To: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Cc: Muhammad Rizki <kiizuha@gnuweeb.org>,
Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>,
GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>
Subject: [PATCH v1 1/4] .vscode: add some C/C++ extension settings
Date: Tue, 16 Dec 2025 01:23:03 +0700 [thread overview]
Message-ID: <20251215182308.48766-2-kiizuha@gnuweeb.org> (raw)
In-Reply-To: <20251215182308.48766-1-kiizuha@gnuweeb.org>
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 <kiizuha@gnuweeb.org>
---
.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
next prev parent reply other threads:[~2025-12-15 18:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-15 18:23 [PATCH v1 0/4] GNUWeebBot2 Fixes and New Updates Muhammad Rizki
2025-12-15 18:23 ` Muhammad Rizki [this message]
2025-12-15 18:23 ` [PATCH v1 2/4] core:lib: fix memory leak and reduce threads Muhammad Rizki
2025-12-15 18:23 ` [PATCH v1 3/4] lib/tgapi: add new properties for type User Muhammad Rizki
2025-12-15 18:23 ` [PATCH v1 4/4] modules: create a `user` module Muhammad Rizki
2025-12-18 22:16 ` [PATCH v1 0/4] GNUWeebBot2 Fixes and New Updates Ammar Faizi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251215182308.48766-2-kiizuha@gnuweeb.org \
--to=kiizuha@gnuweeb.org \
--cc=alviro.iskandar@gnuweeb.org \
--cc=ammarfaizi2@gnuweeb.org \
--cc=gwml@vger.gnuweeb.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox