Visual Studio Code之自动补全的设置

  • 步骤:
  • 1、打开Visual Studio Code;
  • 2、找到c_cpp_properties.json文件;
  • 3、将原来文件的内容清空,复制以下内容到此文件中即可;
{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "/usr/include/**"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "gnu11",
            "cppStandard": "gnu++14",
            "intelliSenseMode": "linux-gcc-x64"
        }
    ],
    "version": 4
}
  • 4、重新启动Visual Studio Code,即达效果;

你可能感兴趣的:(vscode,ide,编辑器)