Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Two.js PlaygroundNew to Visual Studio Code? Get it now.
Two.js Playground

Two.js Playground

João Pinto

|
285 installs
| (0) | Free
Provides snippets preview for the Two.js framework
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Two.js Playground for Visual Studio Code

This project provides a Visual Studo Code extension that can be used to automatically preview code using the two-dimensional drawing library Two.js .

demo

How to Install

Launch VS Code Quick Open (Ctrl + P), paste the following command, and press enter:

ext install joaompinto.twojs-playground

Alternatively you can use the built-in extension browser to find the Two.JS by joaompinto extension and install it.

How to Use

  • Press CTRL + N (To open a new file)
  • Press CTRL + K followed by M (Select "JavaScript")
  • Press CTRL + . (type: twojs and select a snippet)
  • Press F1: (type: TwoJS...)

Using the extension from source

git clone https://github.com/joaompinto/vscode-twojs-playground
code vscode-twojs-playground

From VSCode:

View -> Terminal

In the terminal execute:

npm install

Press F5 to to run the Extension

From the new VSCode perform the "How to use" procedure.

Build and install the extension from source

npm install
node_modules/vsce/out/vsce package
code --install-extension *.vsix

Credits

This extension is only possible thanks to https://two.js.org/, the snippets were obtained from https://two.js.org/#basic-usage .

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft