Continue Discussion 11 replies
April 2021

lishuwei

Thank Alberto! It do work and will bring great convenience for using root.

April 2021

iuming

oh! It is so convenience to view root files!

April 2021

Li-KeLiu

Thank Alberto! it works on my computer, and that’s really convenient.
the “args” list at launch.json need be changed when I want to run new Root Macro, I am wonder whether Is there a way to automatically run the Macro which opened by VS code.

1 reply
April 2021 ▶ Li-KeLiu

ljxljx

you can change hsimple.C in args to ${file}

April 2021

James-Carroll

Is there anyway to change the behaviour of the F5/run button, ideally, I’d want to disable GDB attaching or change how it operates. I’ve been trying to figure this out and it doesn’t seem as simple as using the run without debugging option, which keeps trying to attach GDB anyway.

Originally I’d said the snap package of ROOT wouldn’t really work with IDE’s generally. This is mostly due to the non standard include paths and the complications of trying to work in the container vs out of it, but following this blog, VSCode can be made to get 99% of the way there, with intellisense support, but I can’t get F5 to work because GDB needs to be handled specially for snaps.

Perhaps I’m being blind to something obvious, but otherwise this does fill a huge problem with the snap package so I’d be really keen to have suggestions.

June 2021

Samuel_Kronenberg

Hey many thanks for the post.
I did it like you described but I don’t have IntelliSense autocompletion or something for everything coming with root (plain C is working). Do anyone have an idea how to solve this?
I am using VS Code 1.57.1 and root 6.24.00. Did something change in the meantime?

Many thanks for any help! :slight_smile:

July 2021

Pipi

Does this method also work in MacOS, typically M1 silicon?

July 2021

Axel

Let me invite @AlbertoPdRF over, he might not even be aware of what’s happening here :slight_smile:

December 2021

Rico

Thanks Alberto, it works!

I’m new to ROOT and I’ve also started to coding in C++ very recently, so forgive me if this question sounds trivial.
In my case, VScode shows 12 problems detected because it cannot open the source files included in the script:

Does anyone know how to fix this?

1 reply
December 2021

Rico

If anyone has the same problem, I found a nice solution at this link:

Best regards.