Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : MMBasic VSCode Extension

Posted: 04:46pm
22 Feb 2026
Copy link to clipboard
DNSGeek
Newbie

If anyone uses VSCode, I have put together a VSCode extension to support MMBasic. It's not 100% complete yet, but I think it's close enough to be usable. Please try it and let me know what's missing or what you would like changed. I'm also very receptive to pull requests if you would like to like to contribute. Thanks!

VSCode-MMBasic
 
Posted: 05:05pm
22 Feb 2026
Copy link to clipboard
matherp
Guru

Great minds....

You could have a play with this one too.

mmbasic-support-0.0.7.zip
Syntax highlighting for MMBasic commands, functions, types, numbers, strings, comments, subcommands (e.g., Sprite static), and PIO/GUI/etc. sub-structures.
Folding/indent rules for MMBasic blocks (If/End If, For/Next, Sub/End Sub, Select/Case, etc.).
Snippets generated from the command set for quick insertion.
Theme: “MMBasic Editor” matching PicoMite color scheme; numbers green, keywords cyan.
Serial console: opens a terminal on a chosen port, auto-reconnects after PicoMite OPTION/restart drops USB CDC.
Uploader: “Send To PicoMite” (Ctrl+Alt+U on Windows/Linux, Cmd+Alt+U on macOS) uses AUTOSAVE over the selected serial port, with configurable baud and line delay.
Cross-platform packaging: single VSIX works on Windows, macOS, Linux; serialport uses prebuilds or rebuilds if needed.

  Quote  ## 1) Install the VSIX
- In VS Code: **Ctrl+Shift+P** → “Extensions: Install from VSIX…” → select `mmbasic-support-<version>.vsix`.
- Or terminal: `code --install-extension mmbasic-support-<version>.vsix`.

## 2) Select language & theme (one-time)
- Language mode: click the status bar language indicator → choose **MMBasic** (or Command Palette → “Change Language Mode” → MMBasic).
- Color theme: **Ctrl+K Ctrl+T** → choose **MMBasic Editor**.

## 3) Upload shortcut
- Focus an MMBasic file and press **Ctrl+Alt+U** (Windows/Linux) or **Cmd+Alt+U** (macOS) to run “MMBasic: Send To PicoMite”.
- Pick your serial port (e.g., COM3). Adjust in Settings if needed:
 - `mmbasicUploader.baud` (default 115200)
 - `mmbasicUploader.lineDelayMs` (default 5 ms)

## 4) Serial console
- Run “MMBasic: Open Console” (Command Palette or command list), choose the port. A terminal tab opens.
- If the PicoMite restarts (e.g., after OPTION changes), the console auto-reconnects and stays open.

## 5) Notes
- The VSIX is platform-agnostic; use the same file on Windows/macOS/Linux.
- If `serialport` needs to rebuild, ensure build tools are present (Windows: recent Node.js usually has prebuilds; Linux: build-essential python3 make; macOS: Xcode Command Line Tools).
- To update, just reinstall with a newer VSIX.

## 6) Quick reminder
1) Install from VSIX
2) Set language: MMBasic
3) Set theme: MMBasic Editor
4) Upload: Ctrl+Alt+U (Cmd+Alt+U on macOS)
5) Console: “MMBasic: Open Console”
 
Posted: 05:39pm
22 Feb 2026
Copy link to clipboard
dddns
Guru

What a great idea to do that ..finally! I think it will be beneficial for many people.
Good luck!
 
Posted: 10:23pm
23 Feb 2026
Copy link to clipboard
karlelch
Guru


Cool! I got only the syntax highlighting:
MMBasic Syntax highlighting for VS Code  

Edited 2026-02-24 08:27 by karlelch
 
Posted: 10:33pm
23 Feb 2026
Copy link to clipboard
karlelch
Guru


Maybe Picom could be integrated to support full backup and restore of a picomite …
Edited 2026-02-24 08:33 by karlelch
 
Posted: 01:19am
01 Mar 2026
Copy link to clipboard
DNSGeek
Newbie

I updated the extension so it's up to date as of 6.02.00. Updated the tooltips, autocomplete, keywords, etc.

I added a remote debugger

I added file browsing. View, Upload, Download, Edit and Delete files directly on your device.

I've tested it on macOS and Linux, with PicoCalc devices running PicoMite and WebMite. It should work on everything, but if you run into any issues let me know. There is a vsix file provided in the Releases for easy installing.

vscode-mmbasic
 
Posted: 05:14am
01 Mar 2026
Copy link to clipboard
Peter63
Senior Member

  Quote  You could have a play with this one too.

mmbasic-support-0.0.7.zip


I get a message when I try to send the program (CTRL+Alt+U)



What could be the problem...

Yes, I am a beginner at VSCODE

/Peter63
 
Posted: 07:29am
01 Mar 2026
Copy link to clipboard
karlelch
Guru


  DNSGeek said  I updated the extension so it's up to date as of 6.02.00. Updated the tooltips, autocomplete, keywords, etc.

I added a remote debugger

I added file browsing. View, Upload, Download, Edit and Delete files directly on your device.

I've tested it on macOS and Linux, with PicoCalc devices running PicoMite and WebMite. It should work on everything, but if you run into any issues let me know. There is a vsix file provided in the Releases for easy installing.

vscode-mmbasic

Thanks for the update and for providing a vsix file. I was about to try the earlier version under Windows but stopped the installation because I got may warnings about unsafe packages. I’ll try the new version later today.

Best
Thomas
 
Posted: 03:48pm
01 Mar 2026
Copy link to clipboard
Peter63
Senior Member

A small update from me. Sending programs to PicoMite now works from VSCODE (I had to activate Terminal first...)

Using: mmbasic-support-0.0.7.zip  (VSIX-file)
/Peter63
Edited 2026-03-02 01:51 by Peter63
 
Posted: 03:57pm
01 Mar 2026
Copy link to clipboard
Peter63
Senior Member

  Quote  There is a vsix file provided in the Releases for easy installing.


DNSGeek , I Cannot find VSIX file, sorry

/Peter63
 
Posted: 04:41pm
01 Mar 2026
Copy link to clipboard
DNSGeek
Newbie

  Peter63 said  
  Quote  There is a vsix file provided in the Releases for easy installing.


DNSGeek , I Cannot find VSIX file, sorry

/Peter63


Go to the repository page. In the right hand column, you'll see a block titled "Releases". Click on the bolded word Releases and it will take you to the page with all of the files, including the most recent vsix file.

I didn't just link directly to the release page because I wanted to show you how to get to it so you know how find it on every GitHub repo that does releases.
 
Posted: 04:49pm
01 Mar 2026
Copy link to clipboard
Peter63
Senior Member

Thanks, will try a bit later.
/Peter63
 


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026