Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:39 25 Feb 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBasic VSCode Extension

Author Message
DNSGeek
Newbie

Joined: 22/12/2025
Location: United States
Posts: 2
Posted: 04:46pm 22 Feb 2026
Copy link to clipboard 
Print this post

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
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10982
Posted: 05:05pm 22 Feb 2026
Copy link to clipboard 
Print this post

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”
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 755
Posted: 05:39pm 22 Feb 2026
Copy link to clipboard 
Print this post

What a great idea to do that ..finally! I think it will be beneficial for many people.
Good luck!
 
karlelch

Guru

Joined: 30/10/2014
Location: Germany
Posts: 317
Posted: 10:23pm 23 Feb 2026
Copy link to clipboard 
Print this post

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

Edited 2026-02-24 08:27 by karlelch
 
karlelch

Guru

Joined: 30/10/2014
Location: Germany
Posts: 317
Posted: 10:33pm 23 Feb 2026
Copy link to clipboard 
Print this post

Maybe Picom could be integrated to support full backup and restore of a picomite …
Edited 2026-02-24 08:33 by karlelch
 
Print this page


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