Processing for Visual Studio CodeWhat this extension isThis is a Visual Studio Code extension created by Tobiah Zarlez to add Processing language support. What this extension isn'tThis extension does not allow you to debug Java or Processing projects. Can you add a feature I want?Possibly! Let us know, we'd love to hear your suggestions. Installation Instructions
Feature listSyntax highlightingOpen any .pde file, or simply choose "Processing" from the drop down menu in the bottom right corner. SnippetsOnce the language has been set, you will see code snippets pop up automatically as you type! CommandsInstalling this extension will add the following commands to your command pallette ( Command: Create Task FileAdds a When you run this task (Keyboard shortcut: If you would like to see output from the compiler, simply comment out the line NOTE: Processing must be added to your path, or you must set the "processing.path" setting! Follow these instructions to add Processing to your path, or these alternate instructions instead to modify the path setting. See "Requirements" for full details. Command: Run Processing ProjectThis is just a shortcut for running the Note: Must have ran the "Create Processing Task File" command first, see above! Command: Open Extension DocumentationOpens this documentation. By default uses processing.org's documentation. Can change to p5js's if preferred using the Command: Open Documentation for SelectionUse the pallet command "Processing: Open Documentation for Selection" to open the processing documentation for the current selection. By default uses processing.org's documentation. Can change to p5js's if preferred using the Command: Search Processing WebsiteUse the pallet command "Processing: Search Processing Website" to quickly search whatever you want on the processing website. By default uses processing.org's documentation. Can change to p5js's if preferred using the By default uses Google for search. Can change to DuckDuckGo if preferred using the RequirementsInstalling the extension will give you instant access to syntax highlighting and snippets. However, in order to compile and run your processing project from Visual Studio Code, you will need to do three things:
Add Processing to pathIn order to automatically compile and open from Visual Studio Code, I recommend adding Processing to your path. What does that mean?That means you should be able to type the How do I do that?It's easier than you might think! Windows
MacOpen Processing, and click the Note: You will have to install processing-java for all users for this to work LinuxSet your Example: You also need to create an alias for Example: Then what?Once you've installed Processing to your path, you just need to add the appropriate See the command "Create Task File" Alternate MethodWhat if you cannot, or do not want to add Processing to your path? Simply modify the To change settings in VSCode, here is a link to the official documentation. (Remember, for Windows be sure to turn any " Example:
NOTE: This is untested on Mac and Linux If needed: Overwrite default terminalYou may need to also overwrite your default terminal in order to get your task file to run correctly. Following the instructions on the official VSCode documentation, all you have to do is add a few extra lines to your task file once you generate it. For example, if you are running Windows and want the task file to use Command Prompt ('cmd.exe') you can add an 'options' parameter under the 'windows' portion:
To Do List
CreditsSyntax highlighting and snippets code based on the Processing Sublime Text plugin. Other resourcesHere are some other resources I recommend: |