title: How can I modify the code formatting for C++ in Visual Studio Code?
body: <p>So far after installing the C++ extension tool, I can use <kbd>Ctrl</kbd> + <kbd>K</kbd> + <kbd>F</kbd> 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:</p>
  <pre><code># Force pointers to the type for C++.
  DerivePointerAlignment: false
  PointerAlignment: Left
  </code></pre>
  <p>How can I do this modification? I've tried to create a .clang-format file, but it doesn't work.</p>