how can I place my else on new line, for example, I want to change
if () {
} else {
}
into
if() {
}
else {
}
I have edit theC_Cpp: Clang_format_fallback Style and entered { BasedOnStyle:Microsoft, IndentWidth: 4, ColumnLimit: 0}
how can I place my else on new line, for example, I want to change
if () {
} else {
}
into
if() {
}
else {
}
I have edit theC_Cpp: Clang_format_fallback Style and entered { BasedOnStyle:Microsoft, IndentWidth: 4, ColumnLimit: 0}
Copyright © 2021 Jogjafile Inc.
Looks like vscode's formatter uses clang-format by default, so if you didn't change it, we can refer to the clang-format options directly, can you try to append the following key-value (BeforeElse) pair within your braces?
If that doesn't work, then you should try to use the traditional
.clang-formatfile which vscode also supports.