micro:bit VS Code ExtensionPreview release of VS Code support for the micro:bit codal environment Getting startedDesktopWith VS Code installed, past this URL in a browser: vscode://microbit.microbit-pack/clone?url=https://github.com/thegecko/microbit-v2-samples The following should happen:
Web with local filesClone an example repository locally
Web with githubOpen this URL in chrome or edge: https://vscode.dev/github/thegecko/microbit-v2-samples The following should happen
Any changes pushed will be done via a fork if you don't have relevant permission on the repository UsageA device manager panel should be visible to select a micro:bit attached to the system. A micro:bit panel should be visible with buttons to:
When debugging, an SVD viewer panel should also be visible. NotesBuild in webThis is a work in progress and not complete. In order for project hydration to work, tar equivalents of dependant libraries must be served from a host with CORS disabled. To mimic this locally, the sample above requires these files to be downloaded somewhere:
And then served up on localhost:
The host and port for this are configurable in the extension settings. Debug in webIf the binary being debugged was built in a different folder structure, then the debugger needs to be told where to find the source files. This can be done using the
|