settings.json 配置在保存时自动格式,{ 大括号不换行,减少占用屏幕的配置
{
//设置 C++ 代码格式化样式为 Chromium 风格,缩进宽度为 3,不限制每行字符数。
"C_Cpp.clang_format_style": "{ BasedOnStyle: Chromium, IndentWidth: 3, ColumnLimit: 0}",
//在保存时自动进行代码格式化。
"editor.formatOnSave": true,
//自定义编辑器的颜色。
"workbench.colorCustomizations": {
//设置当前行的背景色为 #39393b
"editor.lineHighlightBackground": "#311a6a",
},
//设置当前行的背景色为 #39393b
"editor.fontFamily": "Fira Code Light",
//开启字体连字符特性,让某些程序员常用符号如 -> 和 != 等以更美观的方式显示
"editor.fontLigatures": true,
}