在windows下的VSCode编写C++配置

本文档提供了在Windows上使用VSCode配置C++开发环境的详细步骤,包括安装gcc、配置插件、设置.gdb、.json文件及代码格式化。并解决调试和缩进问题。
摘要由CSDN通过智能技术生成

之前在看到网上没有相关中文的VS Code的配置教程,于是就自己写一个。

必须安装windows下的gcc


配置下来就是这样,可以进行debug。


这是我的插件:


其中如果要编写C++最好能够安装所有带C++字样的插件。

// 将设置放入此文件中以覆盖默认设置
{
    // 以像素为单位控制字号。
    "editor.fontSize": 20,
    // 控制字体系列。
    "editor.fontFamily": "Consolas, monospace",
    "python.autoComplete.extraPaths": [],
    "python.formatting.autopep8Args": [],
    "python.formatting.autopep8Path": "autopep8",
    "python.formatting.outputWindow": "Python",
    "python.formatting.provider": "autopep8",
    "python.formatting.yapfArgs": [],
    "python.formatting.yapfPath": "yapf",
    "python.jupyter.appendResults": true,
    "python.jupyter.defaultKernel": "",
    "python.jupyter.startupCode": [
        "%matplotlib inline"
    ],
    "editor.renderIndentGuides": true,
    "python.linter": "pyLint",
    "python.linting.enabled": true,
    "python.linting.flake8Args": [],
    "python.linting.flake8Enabled": false,
    "python.linting.flake8Path": "flake8",
    "python.linting.lintOnSave": true,
    "python.linting.lintOnTextChange": true,
    "C_Cpp.clang_format_formatOnSave": true,
    "clang-format.language.cpp.enable": true,
    //
    "C_Cpp.clang_format_style": "file",
    //
    "C_Cpp.autocomplete": "Default",
    "C_Cpp.clang_
  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值