Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to set up clang-format on windows for msvs.
- 0. Install the clang-format plugin for msvs from
- https://marketplace.visualstudio.com/items?itemName=HansWennborg.ClangFormat
- 1. Put the following as the default c++ formatting configuration in
- c:\Users\<username>\.clang-format (note the dot)
- ---
- BasedOnStyle: Google
- IndentWidth: 4
- ---
- Language: Cpp
- # Force pointers to the type for C++.
- DerivePointerAlignment: false
- PointerAlignment: Left
- 2. From an open file in msvs, clang-format options should show up under the Tools menu.
Advertisement
Add Comment
Please, Sign In to add comment