This VS Code extension provides a streamlined workflow for building and previewing LVGL-based panel simulations developed with Emscripten. It offers a single command to rebuild the entire C/C++ project and launch a live preview directly within a VS Code tab.
Features
One-Click Build & Preview: Adds a single command, Panel Simulator: Rebuild and Preview, to the Command Palette.
Automated Workflow: Executes your project's rebuild.bat (or rebuild.sh) script to ensure a clean and complete build every time.
Integrated Preview: Uses the Live Preview extension to display the running simulation in a VS Code tab, eliminating the need to switch to an external browser.
Prerequisites
For this extension to work, your project folder must contain a build script at its root:
For Windows: rebuild.bat
For Linux/macOS: rebuild.sh
This script is responsible for the entire compilation process.
Usage
Open your panel simulation project folder in VS Code.
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
Type Panel Simulator and select the Protok Simulator: Rebuild and Preview command.
The extension will execute the build script. Upon successful completion, a new tab will open with the live preview of your simulation.
Dependencies
This extension relies on the Live Preview extension, created by Microsoft.
When you install Panel Simulator Builder, VS Code will automatically prompt you to install Live Preview if it is not already present.