ubuntu vscode软件设置

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
}
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值