pxt-calliope/docs/code.md
Peli de Halleux 740cedd978 added docs
2016-08-12 16:15:41 -07:00

1.1 KiB

Visual Studio Code

Visual Studio Code is a Free Open Source code editor. Edit your programs with

Tools setup

Follow these instructions to setup your machine and edit your programs in Visual Studio Code.

  • install Visual Studio Code
  • install Node.JS
  • install the PXT Tools (on Mac or Linux, you might have to add sudo to the command).
pxt install -g pxt
  • create a folder for your projects
mkdir microbit
  • install the microbit target
pxt target microbit

That's it! You are ready to create new projects in code or open existing projects.

Creating a new project

Open a shell to your projects folder.

# create a new subfolder for your project
mkdir myproject
# start the project set
pxt init
# open code
code. 

Opening an existing project

You can extract a project from the embedded URL. Open a shell to your projects folder

# extract the project from the URL
pxt extract EMBEDURL

where EMBEDURL is the published project URL.