IDE Extensions (VS Code and JetBrains)
zplflow provides official thin-client IDE extensions for Visual Studio Code (including Cursor and VSCodium) and JetBrains IDEs (IntelliJ IDEA, GoLand, WebStorm, PyCharm). Preview .zpl, .prn, and .label files with pixel-perfect accuracy directly inside your editor at zero token cost.
Overview
The IDE extensions connect to POST /v1/pipelines/preview over HTTPS and render labels in memory without persisting payloads or deducting tokens from your balance:
- Pixel-Perfect Rendering: Powered by the server-side zplflow rasterizer with full support for 152, 203, 300, and 600 DPI printheads.
- Zero Token Charge: Live preview requests do not consume tenant tokens.
- In-Memory SHA-256 LRU Cache: Repeated renders and Undo/Redo operations resolve locally in 0ms without network roundtrips.
- ZPL Syntax Highlighting: Semantic highlighting for label bounds (
^XA,^XZ), field positioning (^FO,^FT), barcodes (^BC,^BQ,^BX), and graphics (^GB,^GF,~DG).
Visual Studio Code and Cursor
Installation
Install the extension from the Visual Studio Marketplace or from a .vsix package:
code --install-extension zplflow.vscode-zplflow
Configuration
Open VS Code Settings (settings.json) and configure your API key and default label parameters:
{
"zplflow.apiKey": "zpl_live_xxxxxxxx.yyyyyyyyyyyyyyyy",
"zplflow.apiUrl": "https://api.zplflow.com",
"zplflow.dpi": 203,
"zplflow.widthMm": 101.6,
"zplflow.heightMm": 152.4,
"zplflow.renderMode": "onSave"
}
| Setting | Default | Description |
|---|---|---|
zplflow.apiKey |
"" |
API key with the pipelines:apply scope. See Authentication. |
zplflow.apiUrl |
https://api.zplflow.com |
Base URL for zplflow Cloud or your self-hosted on-premise gateway. |
zplflow.dpi |
203 |
Printhead resolution in dots per inch (152, 203, 300, or 600). |
zplflow.widthMm |
101.6 |
Default label width in millimeters (101.6 mm equals 4 inches). |
zplflow.heightMm |
152.4 |
Default label height in millimeters (152.4 mm equals 6 inches). |
zplflow.renderMode |
onSave |
Refresh mode: onSave (recommended for the Free plan) or onType (debounced). |
Usage
- Open any
.zpl,.prn, or.labelfile in the editor. - Run the command zplflow: Open Live Preview from the Command Palette (
Ctrl+Shift+PorCmd+Shift+P). - Save the file (
Ctrl+SorCmd+S) to refresh the preview, or switch DPI and dimensions directly from the preview toolbar.
JetBrains IDEs (IntelliJ IDEA, GoLand, WebStorm)
Installation
- Open Settings > Plugins in your JetBrains IDE.
- Search for zplflow — ZPL Live Preview on the JetBrains Marketplace (or choose Install Plugin from Disk…).
- Restart the IDE if prompted.
Configuration and Usage
- Configure your API key, base URL, default DPI, and label dimensions in the zplflow settings (
zplflow.xml). - Open the zplflow Preview tool window anchored on the right sidebar.
- Open any
.zpl,.prn, or.labelfile and save (Ctrl+SorCmd+S) to render the label inside the integrated JCEF preview panel.
Rate Limits
Preview requests are governed by per-tenant rate limits and return X-RateLimit-Remaining and Retry-After headers:
| Plan Tier | Preview Rate Limit | Recommended Mode |
|---|---|---|
| Free | 30 requests / minute | onSave |
| Pro / Enterprise | 600 requests / minute | onType or onSave |