Skip to content

Developing in VSCode

Tomás Sousa edited this page Apr 21, 2022 · 4 revisions

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:

  1. 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.
  2. 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": [

            "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:

Screenshot from 2022-04-21 20-18-08