setting->Code Actions on Save( Edit in settings.json )
打开settings.json,修改相应选项。虽个别有错,也不全但足够用。
代码
-
“editor.fontSize”: 15, //字体大小
-
“editor.fontFamily”: “monospace”, //字体设定,
-
“editor.lineHeight”: 23, //设定行高,建议设定:字体大小 × 1.5
-
“editor.letterSpacing”: 1, //字母间距
-
“editor.fontWeight”: “400”, //字体粗细
-
“editor.tabSize”: 2, //2空格
-
“editor.fontLigatures”: true, //字体连字
终端
- terminal.integrated.fontFamily": “monospace”, //终端间距
setting.json文件如下
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "gcc", // 任务名称,与launch.json的preLaunchTask相对应
"command": "gcc", // 要使用的编译器, C++就写g++
"args": [
"${file}",
"-o", // 指定输出文件名,不加该参数则默认输出a.exe,Linux下默认a.out
"${fileDirname}/${fileBasenameNoExtension}.out",
"-g", // 生成和调试有关的信息
//"-Wall", // 开启额外警告
"-static-libgcc", // 静态链接
"-std=c99" // C语言最新标准为c11,或根据自己的需要进行修改比如C++17
], // 编译命令参数
"type": "shell", // 可以为shell或process,前者相当于先打开shell再输入命令,后者是直接运行命令
"group": {
"kind": "build",
"isDefault": true // 设为false可做到一个tasks.json配置多个编译指令,需要自己修改本文件,我这里不多提
},
"presentation": {
"echo": true,
"reveal": "always", // 在“终端”中显示编译信息的策略,可以为always,silent,never。具体参见VSC的文档
"focus": true, // 设为true后可以使执行task时焦点聚集在终端
"panel": "shared" // 不同的文件的编译信息共享一个终端面板
},
"problemMatcher": "$gcc"
}
],
"editor.fontSize": 15,
"editor.fontFamily": "monospace",
"editor.lineHeight": 23,
"editor.fontLigatures": true,
"editor.letterSpacing": 0.9,
"vscodeMarkdownNotes.newNoteDirectory": "docs/",
"editor.tabSize": 2,
"editor.suggestSelection": "first",
"editor.fontWeight": "400",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"kite.showWelcomeNotificationOnStartup": false,
"C_Cpp.updateChannel": "Insiders",
"workbench.iconTheme": "material-icon-theme",
"terminal.integrated.fontFamily": "monospace",
"editor.fontLigatures": null
}