Create and run Processing sketches in Visual Studio Code.
This extension adds support for Processing sketches in VSCode. Includes familiar run and stop buttons, syntax highlighting, code suggestions, and easy access to your sketchbook and examples. If you prefer coding in VS Code, this extension makes it easier to work with Processing.
You will need Processing 4.4.6 or later installed on your computer (Download Processing).
IMPORTANT: Run Processing at least once after installing it. This creates the files the extension needs.
- Run and stop sketches directly in VS Code
- Browse your sketchbook and open example sketches
- Syntax highlighting for Processing code
- Code suggestions and error checking with the Processing Language Server
- Automatic detection of your Processing installation (no manual configuration required)
Install the extension from the Visual Studio Marketplace or search for "Processing" in the Extension Marketplace within VS Code.
- Install the Processing extension for VS Code.
- Click the Processing icon in the Activity Bar on the side of the VS Code window.
- Open a sketch from your sketchbook or from the examples.
- Click the Run button to start your sketch.
When you run a sketch, a terminal will open at the bottom of VS Code to show the build output, and the Processing sketch window will appear.
You can customize the extension in VS Code settings
- Open Settings via
Ctrl + ,
on Windows/Linux orCmd + ,
on macOS. - Search for "Processing" to find all available settings.
- Modify the settings as needed:
processing.autosave
: Automatically saves your sketch before running it. Default:true
.processing.newWindow
: Opens sketches in a new VS Code window. If disabled, sketches open in the current window. Default:true
.processing.version
: Choose which installed Processing version to use. Default islatest
, but you can specify a version (e.g.,4.4.6
).
If something doesn’t work:
- Close any running Processing sketches or editor windows
- Remove any other Processing extensions that might conflict with this one
- Close VSCode
- Check you have installed Processing 4.4.6
- Run the Processing editor once
- Restart VSCode
The extension has been tested on:
- macOS (Apple Silicon)
- Windows 64-bit
- Linux 64-bit
- Some Processing constants (like
PI
,RGB
,DEGREES
) are not highlighted yet - Classes from third-party libraries are not recognized by the language server (sketches still run fine). See this issue
- The extension includes a bundled JDK for macOS, Windows, and Linux. This increases the extension size, but is necessary for reliably detecting your Processing installation across platforms. Eventually, we hope to remove this dependency and rely on the Processing CLI instead.
This project is still growing, and contributions are welcome!
IMPORTANT: Before submitting a pull request, please read the CONTRIBUTING.md from the Processing repository.
Please note we also have a Code of Conduct that we expect all contributors to follow.
This project uses the GPL-2.0 License. See LICENSE for details.
For Processing’s own licensing, see the Processing README.