nasarouf

windows : : clang_format

Aug 10th, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. How to set up clang-format on windows for msvs.
  2.  
  3. 0. Install the clang-format plugin for msvs from
  4. https://marketplace.visualstudio.com/items?itemName=HansWennborg.ClangFormat
  5.  
  6. 1. Put the following as the default c++ formatting configuration in
  7. c:\Users\<username>\.clang-format (note the dot)
  8. ---
  9. BasedOnStyle: Google
  10. IndentWidth: 4
  11. ---
  12. Language: Cpp
  13. # Force pointers to the type for C++.
  14. DerivePointerAlignment: false
  15. PointerAlignment: Left
  16.  
  17. 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