Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
... allows to jump to the erroneous line:
[[File:BoraLite-VSC7.png|thumb|center|600px|Catching the syntax error]]
 
 
This example makes use of the C/C++ extension. It is convenient to configure it so that it can access include files although they are outside the project's directory. By pressing ''Ctrl+Shift+P'' and selecting ''C/C++ Edit Configurations (JSON)'', it is possible to create a <code>c_cpp_properties.json</code>:
 
 
[[File:BoraLite-VSC8.png|thumb|center|600px|Catching the syntax error]]
 
 
Then, modify the <code>includePath</code> variable as shown in the following box:
<syntaxhighlight lang="text">
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/../freertos_hello_world_bsp/ps7_cortexa9_0/include"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"cStandard": "c11",
"intelliSenseMode": "msvc-x64"
}
],
"version": 4
}
</syntaxhighlight>
 
For details, please see also [https://code.visualstudio.com/docs/cpp/config-mingw this page].
4,650
edits