... | @@ -49,6 +49,11 @@ If `compile_commands.json` is not generated, or the pop-up does not appear. Call |
... | @@ -49,6 +49,11 @@ If `compile_commands.json` is not generated, or the pop-up does not appear. Call |
|
## Modify the configuration file
|
|
## Modify the configuration file
|
|
Modify the file so it is configured to DevEnv. It is recommended to change `compilerPath`, `cppStandard`, `intelliSenseMode` and add the line `compileCommands` (if not already filled when [created automatically](#automatic-creation)) to make use of the `compile_commands.json` file created.
|
|
Modify the file so it is configured to DevEnv. It is recommended to change `compilerPath`, `cppStandard`, `intelliSenseMode` and add the line `compileCommands` (if not already filled when [created automatically](#automatic-creation)) to make use of the `compile_commands.json` file created.
|
|
|
|
|
|
|
|
When finished, [intellisense](https://code.visualstudio.com/docs/editor/intellisense) will start parsing the files, it'll take a while since it'll build it's cache (tipically at ~/.cache/vscode-cpptools/ipch`).
|
|
|
|
|
|
|
|
Depending on DevEnv version, the setup varies a bit because of the location of `gcc`
|
|
|
|
|
|
|
|
### DevEnv 4.x
|
|
```json
|
|
```json
|
|
{
|
|
{
|
|
"configurations": [
|
|
"configurations": [
|
... | @@ -58,7 +63,28 @@ Modify the file so it is configured to DevEnv. It is recommended to change `comp |
... | @@ -58,7 +63,28 @@ Modify the file so it is configured to DevEnv. It is recommended to change `comp |
|
"${workspaceFolder}/**"
|
|
"${workspaceFolder}/**"
|
|
],
|
|
],
|
|
"defines": [],
|
|
"defines": [],
|
|
"compilerPath": "/opt/rh/gcc-toolset-9/root/usr/bin/gcc",
|
|
"compilerPath": "/usr/bin/gcc",
|
|
|
|
"cStandard": "c17",
|
|
|
|
"cppStandard": "c++17",
|
|
|
|
"intelliSenseMode": "linux-gcc-x64",
|
|
|
|
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"version": 4
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### DevEnv 3.x
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"configurations": [
|
|
|
|
{
|
|
|
|
"name": "Linux",
|
|
|
|
"includePath": [
|
|
|
|
"${workspaceFolder}/**"
|
|
|
|
],
|
|
|
|
"defines": [],
|
|
|
|
"compilerPath": "/opt/rh/gcc-toolset-9/root/usr/bin/gcc",
|
|
"cStandard": "c17",
|
|
"cStandard": "c17",
|
|
"cppStandard": "c++17",
|
|
"cppStandard": "c++17",
|
|
"intelliSenseMode": "linux-gcc-x64",
|
|
"intelliSenseMode": "linux-gcc-x64",
|
... | @@ -69,7 +95,6 @@ Modify the file so it is configured to DevEnv. It is recommended to change `comp |
... | @@ -69,7 +95,6 @@ Modify the file so it is configured to DevEnv. It is recommended to change `comp |
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
|
When finished, [intellisense](https://code.visualstudio.com/docs/editor/intellisense) will start parsing the files, it'll take a while since it'll build it's cache (tipically at ~/.cache/vscode-cpptools/ipch`).
|
|
|
|
|
|
|
|
# Configure WAF Tasks
|
|
# Configure WAF Tasks
|
|
Telling how to build the project will be needed for Running/Debugging the code later. This is done by configuring WAF Tasks on VSCode. More information of task can be found in the [Official Documentation](https://code.visualstudio.com/docs/editor/tasks)
|
|
Telling how to build the project will be needed for Running/Debugging the code later. This is done by configuring WAF Tasks on VSCode. More information of task can be found in the [Official Documentation](https://code.visualstudio.com/docs/editor/tasks)
|
... | | ... | |