Running a script from VS code

Hi,
I have currently created a piece of code in processing and I would like to create another piece of code in VS Code, which would call and run the code I currently have, just wondering if this is possible and if so how would I do it?
Thanks Daniel

I have a few questions –

  • What programming language are you writing in VS Code?
  • Why is it that you specifically have to use VS Code?

The Processing code is (presumably) written in Python Mode / Processing.py? You could use the command line version of Processing.py to execute that code from outside the PDE (Processing Development Environment) – perhaps get your VS Code program to do this.

If you simply want to write Python Mode code in the VS Code editor, then configure VS Code (or whatever editor you prefer) to run the command line version of Processing.py on the code you’re writing in VS Code (and leave out the PDE altogether).