Preface
(1) When we use Vscode for development, the named file is successfully compiled, but Vscode still has a wavy line prompt.
(2) In fact, it is enough if the compilation is successful, but there will definitely be some patients with obsessive-compulsive disorder who insist on eliminating this error. Next I will explain how to eliminate this problem. The method is very simple
text
(1) Press the keys ctrl+shift+p. You can enter the console, then enter C++ to find the edit configuration option.
(2) Scroll down, find Advanced Settings, and click to expand.
(3) Scroll down and find the compile command option
(4) Copy the full path of compile_commands.json in the build path to this compilation command
(5) Finished!