Configuration of the C + + library file in Vscode
Before has been used sublime do the main editor, and now mainly use Vscode, after all, factory production, from the current use of the situation, I prefer to use the Vscode editor.
Sometimes the vscode is used to component C + + engineering, and some externally dependent library files, such as OpenCV, are used. At this point, you want the VSCODE code hint function to prompt the function in OpenCV, this time you need to configure the C + + compilation environment in the workspace.
If you have used sublime or vscode, you know ctrl+shift+p can bring up the control window, then first press ctrl+shift+p:
Then enter Edit or configuration and select "C/cpp:edit Configurations":
The./.vscode/c_cpp_properties.json file is then generated in your workspace, and all we need to do is configure the parameters for this file;
Add the address of your library file to the "Includepath" attribute, similar to this:
"/home/**/Tools/opencv/cpu-install/include", "/home/**/Tools/opencv/gpu-install/include"
See:
After the configuration, it is better to restart the client, Vscode will also give you automatically prompt OpenCV library functions or classes and so on.
Configuration of the C + + library file in Vscode