So far after installing the C++ extension tool, I can use Ctrl + K + F to auto-format my C++ code. However, I would like to make some modification, for example I would like to force the pointer alignment to be near the type, instead of next to the variable name, such as this rule:
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left
How can I do this modification? I've tried to create a .clang-format file, but it doesn't work.
Ctrl
+K
+F
(format) andCtrl
+K
,F
(close directory) all the time. – Aiguillette"C_Cpp.formatting": "vcFormat"
solved this very issue to me, the pointers are placed close to the type, not close to the identifier. – Darbie