Git Product home page Git Product logo

p5.vscode's Introduction

p5.vscode

p5.vscode helps you create p5.js projects in Visual Studio Code. It also includes autocompletion, a simple tool to browse and install third-party p5 libraries, and the Live Server extension.

I made this extension for my students in particular, but I hope it's helpful for anyone using p5. I'm aware there are a few other VS Code extensions that do something similar, but they didn't quite meet my requirements.

Instructions

To create a new p5 project:

  1. Open the Command Palette (with command-shift-p on Mac, or ctrl-shift-p on Windows) and then start typing and select Create p5.js Project.
  2. Select a new empty folder to put your project in.
  3. (optional) click the "Go Live" button in the bottom status bar to open your sketch in a browser
  4. Abolish cops.

To install p5 libraries:

  1. Open the Command Palette, then start typing and select Install p5 Contributor Library
  2. Select the library you'd like to install and hit enter.
  3. Select Install to download the library and add it as a script tag to your index file, or select Visit home page to view documentation for that library.

Features

  • Creates a p5.js project by populating an empty folder with required html/css/js files.
  • Browse and install third-party p5.js libraries.
  • Autocompletion and documentation for p5 keywords & functions using TypeScript definitions.
  • Avoids CDN use so that project creation can work offline.
  • Comes bundled with other recommended VS Code extensions to make things easier for beginners & students.

Troubleshooting

  • When creating a new project, please select an empty folder.
  • Library installation requires a project workspace containing an index.html file and a libraries folder.
  • I've attempted to integrate all the contributed libraries found on p5's library page. If I've missed anything, please just let me know.

Please log an issue on GitHub if you find any problems or have suggestions.

p5.vscode's People

Contributors

antiboredom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.