How to edit formatting settings to increase line wrapping length?
2021-07-09 08:07:15
Devops
302

C_Cpp: Clang_format_style

file

C_Cpp: Clang_format_fallback Style

{ BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 2, TabWidth: 2, BreakBeforeBraces: Attach, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: true, ColumnLimit: 0, AccessModifierOffset: -4 }

or

.vscode/settings.json

{
  "C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 2, TabWidth: 2, BreakBeforeBraces: Attach, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: true, ColumnLimit: 0, AccessModifierOffset: -4 }"
}

References

  • https://stackoverflow.com/questions/46111834/format-curly-braces-on-same-line-in-c-vscode
  • https://stackoverflow.com/questions/57730388/how-to-edit-formatting-settings-to-increase-line-wrapping-length