VSC 1.34.0 使用Clang-format 时报错:write EPIPE而不能使用自动格式html
填写clang-format运行位置的绝对路径app
当前路径下建立文件:.clang-format, 内容以下:oop
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# The .clang-format file uses YAML format:
# Example of usage:
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: true
AfterStruct: false
SplitEmptyFunction: false
AlignConsecutiveAssignments: true
AlignOperands: true
AllowShortLoopsOnASingleLine : true
AlwaysBreakBeforeMultilineStrings : false
AlwaysBreakTemplateDeclarations : true
SpaceBeforeAssignmentOperators : true
SpacesBeforeTrailingComments : 3
TabWidth : 2spa