
Use the integrated clang-format to always get our code styled as we want itīut I know this all feels like magic, so if you want to know how everything works, keep reading! How it works.Debug the macros right from the editor setting break points, seeing call stacks, and with an interactive console available.Use IntelliSense’s smart completions to easily create and edit macros without fear of getting the syntax wrong.With everything running, we can now take advantage of some of the awesome functionalities that we mentioned before to develop our ROOT Macros, for instance: Please note that the second one is not strictly required for everything to work, it is just listed as a recommendation for convenience.Īnd that is everything that is needed! Just press F5 and see it for yourself: the example hsimple.C ROOT Macro will run and the hsimple.root file will be recreated. Clicking on the Install button will install both the C/C++ and ROOT File Viewer extensions. Click on the blue button at the bottom right of the editor that reads Open WorkspaceĪfter we have opened the workspace, a toast notification will appear at the bottom right of the editor asking us if we want to install the recommended extensions for the repository.Open the file de-workspace, which is located inside the.We are almost ready to see everything in action, so let us open the workspace and get to it! There’s a few ways to do that, but probably the simplest one to do it is to: Replace the two occurrences with Ctrl + Alt + Enter or clicking on Replace All on the right of the input box.Write the path to your local ROOT installation directory on the Replace input box.Toggle Replace by clicking on the caret on the left of the Search input box.Search for /home/apdrf/programs/root-6.22/install, two occurrences should show up.Toggle the global Search view with Ctrl + Shift + F or clicking on the Search icon in the Activity Bar.We can do that quickly with the editor’s convenient global search and replace functionality: After this is done, we need to manually set the path to our local ROOT installation in two files.
