Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Canvas API snippetsNew to Visual Studio Code? Get it now.
Canvas API snippets

Canvas API snippets

nikeedev

|
3,361 installs
| (1) | Free
This extension contains Canvas API code snippets for JavaScript
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Canvas API Snippets

GitHub package.json version

Features

This extension, that includes code snippets, helps you make graphics( and maybe games) with Canvas API which are used by HTML and Javascript.

Snippets:

Snippet Description
ctx2d This snippet will add 2D Context constant, which are gathered from 'canvas' constant
cce This snippet will create new constant that creates new element
enable-canvas This snippet will add function, that enables IntelliSense for Canvas API
canvas-basic-rect This snippet will add code, for creating basic cube in the middle of element
canvas-basic-template This snippet will add code from a tempelate with all needed things to draw a simple rectangle
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft