Skip to content

Commit 79871a6

Browse files
committed
update c_cpp_properties.json reference
1 parent ba65c48 commit 79871a6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Documentation/LanguageServer/c_cpp_properties.json.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@
66

77
```json
88
{
9+
"env" : {
10+
"defaultIncludePath": [
11+
"${workspaceFolder}",
12+
"${workspaceFolder}/include"
13+
],
14+
"myCompilerPath": "/usr/local/bin/gcc-7"
15+
},
916
"configurations": [
1017
{
1118
"name": "Win32",
1219
"intelliSenseMode": "msvc-x64",
13-
"includePath": [ "${workspaceFolder}" ],
20+
"includePath": [ "${defaultIncludePath}", "/another/path" ],
1421
"macFrameworkPath": [ "/System/Library/Frameworks" ],
1522
"defines": [ "FOO", "BAR=100" ],
1623
"forcedInclude": [ "${workspaceFolder}/include/config.h" ],
@@ -31,6 +38,9 @@
3138

3239
## Top-level properties
3340

41+
* #### `env`
42+
An array of user-defined variables that will be available for substitution in the configurations via the standard environment variable syntax: `${<var>}` or `${env:<var>}`. Strings and arrays of strings are accepted.
43+
3444
* #### `configurations`
3545
An array of configuration objects that provide the IntelliSense engine with information about your project and your preferences. By default, the extension creates 3 configurations for you, one each for Linux, Mac, and Windows, but it is not required to keep them all. You may also add additional configurations if necessary.
3646

0 commit comments

Comments
 (0)