How to run ROOT Macros in VS Code

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