How to run Processing code in Visual Studio?

Hey there

To run Processing sketches from VS (on MacOS) I did the following:

  • Open Processing and make sure processing-java is installed (Tools / install processing-java)
  • Create a new sketch in Processing
  • Open the sketch folder in VS-Code
  • Install the Processing Language - Visual Studio Marketplace Extension
  • Create a task-file with Cmd + Shift + P, then find “Processing: Create Task File”
  • Run the sketch with Cmd + Shift + B.

I remember doing it in a similar way on Windows.
With “Ctrl + Shift + P” and “Ctrl + Shift + B” as keyboard shortcuts.

Tipp: I saved an example sketch with the created task file as a template. Usually I just duplicate that when creating a new sketch.

1 Like