vscode modify the C/C++ code formatting style

The default style is really ugly, the
predefined style
Ctrl+Shift+P enter user settings, enter the Settings interface; or the menu bar File-Preferences-Settings.
Search for clang.

Clang_format_fallback Style: Pre-defined style. Use the style defined here when no .clang-format file is found. The values ​​that can be set are: Visual Studio, LLVM, Google, Chromium, Mozilla, WebKit, none, or key-value pairs such as {key: value,...}.
We will modify the default to: Google, the formatting effect will be changed immediately after one execution.

Setting method

Guess you like

Origin blog.csdn.net/star871016/article/details/109526408