|
6 | 6 | <!-- TODO: Check for other Processing plugins and request deactivation if they are installed --> |
7 | 7 | <!-- TODO: Generate grammar based on the installed Processing version --> |
8 | 8 | <!-- TODO: Setup publishing https://code.visualstudio.com/api/working-with-extensions/publishing-extension --> |
9 | | -<!-- TODO: Merge changes to Processing https://github.com/processing/processing4/pull/1115 --> |
| 9 | +<!-- TODO: Merge changes to Processing https://github.com/processing/processing4/pull/1115 --> |
| 10 | + |
| 11 | +<!-- TODO: add a link to the extension Marketplace page --> |
| 12 | + |
| 13 | +This extension provides support for the Processing programming language in Visual Studio Code. |
| 14 | + |
| 15 | +With familiar run and stop buttons, syntax highlighting, and other helpful features like code suggestions, this extension is designed to support creative coding with Processing for people who prefer using Visual Studio Code as their code editor of choice. |
| 16 | + |
| 17 | +## Requirements |
| 18 | +To use this extension, you need to have the **preview release of Processing (4.4.76)** installed on your system. You can download it from this link: [Processing 4.4.76 Preview](https://github.com/Stefterv/processing4/releases/tag/processing-1376-4.4.76). |
| 19 | + |
| 20 | +> [!IMPORTANT] |
| 21 | +> **Make sure to run Processing 4.4.76 at least once** before using the extension. This step is needed to initialize some required files. |
| 22 | +
|
| 23 | +## Features |
| 24 | +- ▶️ Run / Stop buttons: Play your sketch directly in VS Code. |
| 25 | +- 📁 Sketchbook & Examples Explorer: Browse and open sketches easily. |
| 26 | +- 🎨 Syntax Highlighting: Color-coded formatting for Processing functions and variables. |
| 27 | +- 💡 Code suggestions & error checking: Powered by Processing’s Language Server. |
| 28 | +- 🛠️ No setup required: The extension auto-detects your Processing install. |
| 29 | + |
| 30 | +## How to Use |
| 31 | +To use the Processing VSCode extension, follow these steps: |
| 32 | + |
| 33 | +1. Install the Processing 4.4.76 preview. |
| 34 | +2. Open a `.pde` file or use the sketchbook/explorer in VS Code. |
| 35 | +3. Press ▶️ to run your sketch! |
| 36 | + |
| 37 | +## Troubleshooting |
| 38 | +If you encounter any issues with the Processing VSCode extension, try the following steps: |
| 39 | + |
| 40 | +- Restart VS Code. |
| 41 | +- Make sure no other Processing extensions are installed in VSCode. |
| 42 | +- Quit any running instances of Processing. |
| 43 | +- Double-check that you're using the correct version of Processing (4.4.76). |
| 44 | +- Try running the Processing app once before opening VS Code. |
| 45 | + |
| 46 | +## Compatibility |
| 47 | +This extension has been tested on the following platforms: |
| 48 | + |
| 49 | +- ✅ macOS (Apple Silicon) |
| 50 | +- ✅ Windows 64-bit |
| 51 | +- ✅ Linux 64-bit |
| 52 | + |
| 53 | +## Known issues |
| 54 | +- Play/Stop buttons don’t reflect the actual running state yet. |
| 55 | +- Snap release of Processing (Linux and WSL) is not supported yet (use the portable version instead). |
| 56 | +- Syntax highlighting for Processing-specific constants (e.g., `PI`, `RGB`, `DEGREES`, etc) is not yet implemented. |
| 57 | + |
| 58 | +## Contributing |
| 59 | +This extension is still in development, and you’re welcome to help! |
| 60 | + |
| 61 | +> [!NOTE] |
| 62 | +> Before opening a pull request, it's usually a good idea to start a conversation in the related issue or open a new one. This gives us a chance to talk through the idea together, point you to relevant parts of the code or documentation, and help make your contribution smoother and more likely to be accepted. |
| 63 | +
|
| 64 | +1. Fork the repository |
| 65 | +2. Clone your fork |
| 66 | +3. Create a new branch |
| 67 | +4. Make your changes |
| 68 | +5. Test your changes locally |
| 69 | +6. Commit your changes (use a descriptive commit message) |
| 70 | +7. Push to your fork and open a pull request |
| 71 | + |
| 72 | +## License |
| 73 | +This project is licensed under the GPL-2.0 License. See the [LICENSE](LICENSE.md) file for details. |
| 74 | + |
| 75 | +For information about Processing's own licensing, please refer to the Processing [README](https://github.com/processing/processing4?tab=readme-ov-file) file. |
0 commit comments