Skip to content

Instantly share code, notes, and snippets.

@dewcked
Created February 14, 2022 14:50
Show Gist options
  • Save dewcked/81d7e7acb6113252a1470337cb7f085a to your computer and use it in GitHub Desktop.
Save dewcked/81d7e7acb6113252a1470337cb7f085a to your computer and use it in GitHub Desktop.
Windows visual studio style clang-format executable command
clang-format --style="{BasedOnStyle: llvm,Standard: Latest,AccessModifierOffset: -2,AlignAfterOpenBracket: Align,ColumnLimit: 0,IndentWidth: 2,NamespaceIndentation: All,BreakBeforeBraces: Allman,UseTab: Never,TabWidth: 2,PointerAlignment: Right}" "src.cpp" > "temp_src.cpp" & move /Y "temp_src.cpp" "src.cpp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment