Skip to content

Format style "Visual Studio" definition #12219

Closed Answered by bobbrow
JOSE-Sendance asked this question in Q&A
Discussion options

You must be logged in to vote

"Visual Studio" is not an official style that you can supply for the "BasedOnStyle" property in a .clang-format. The description of how we emulate the "Visual Studio" style is in the setting description that you screengrabbed.

BasedOnStyle: LLVM
UseTab: Never
IndentWidth: 4
TabWidth: 4
BreakBeforeBraces: Allman
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 0
AccessModifierOffset: -4
NamespaceIndentation: All
FixNamespaceComments: false

Official documentation here: https://clang.llvm.org/docs/ClangFormatStyleOptions.html

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@bobbrow
Comment options

Answer selected by JOSE-Sendance
Comment options

You must be logged in to vote
1 reply
@bobbrow
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants