Developing in VSCode - R3BRootGroup/R3BRoot GitHub Wiki
VSCode development
VSCode is an IDE to develop code and a good option if you want to work with R3BRoot. This allows to edit multiple directories at the same time, compare files, use its integrated terminal, ssh tunneling, and much more.
This is a free software that can be download for Windows, Mac OS and some Linux based systems (e.g. Ubuntu, Fedora) download here.
You check how to get started here.
Recommended extensions
- Better C++ Syntax
- C/C++
- CMake
- Remote SSH
Autocompletion in R3BRoot with .json file
To be able to have auto-completion of R3BRoot with VSCode follow these steps:
- Open the Command Pallete (Ctrl+Alt+P), and write "json", select the option "Edit Configurations (JSON). This will create a file called c_cpp_properties.json in the .vscode directory.
- In this .json file you should change the "includePath" to add the paths for FairRoot, FairSoft and R3BRoot. Example of how it could look:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"/home/teetos/Programs/FairRoot/**",
"/home/teetos/Programs/FairSoft/**",
"/home/teetos/Programs/R3BRoot/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu17",
"cppStandard": "gnu++14",
"intelliSenseMode": "linux-gcc-x64",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}
In the "includePath" you should add the directories and then add /** to add all of the files inside it. It should look something like this: