问题描述:在使用vscode时候,#include出现波浪线,提示:#include errors detected. Please update your includePath.
对于使用 VScode 连接Linux,操作Linux下的C++文件出现这个问题的解决办法是:
在terminal 中输入 gcc -v -E -x c++ - ,然后将最下的路径复制到 c_cpp_properties.json中 includePath下
在vscode界面,C/C++: Edit Configurations (UI) from the Command Palette ( 快捷键:Ctrl+Shift+P ) 来查看 C/C++ 配置 UI