【发布时间】:2017-06-16 00:19:31
【问题描述】:
我正在尝试在 Windows 上为 c++ 设置 VS Code。我生成了一个 c_cpp_properties.json 文件并添加了必要的目录;但是,红色波浪线仍保留在我包含标题的所有行下方。这是某种错误吗?我知道我的路径是正确的。
使用了以下标题:
#include "stdlib.h"
#include "stdio.h"
#include <iostream>
#include <fstream>
#include <iomanip>
#include <math.h>
#include <cmath>
#include <time.h>
我正在使用 minGW;因此,c_cpp_properties.json 文件的相关部分如下所示:
"name": "Win32",
"includePath": [
"C:/MinGW/include",
"C:/MinGW/lib/gcc/mingw32/5.3.0/include/c++"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"browse": {
"path": [],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
感谢任何帮助。
【问题讨论】:
标签: c++ json visual-studio-code vscode-settings