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

  1. Open any .zpl, .prn, or .label file in the editor.
  2. Run the command zplflow: Open Live Preview from the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
  3. Save the file (Ctrl+S or Cmd+S) to refresh the preview, or switch DPI and dimensions directly from the preview toolbar.

JetBrains IDEs (IntelliJ IDEA, GoLand, WebStorm)

Installation

  1. Open Settings > Plugins in your JetBrains IDE.
  2. Search for zplflow — ZPL Live Preview on the JetBrains Marketplace (or choose Install Plugin from Disk…).
  3. Restart the IDE if prompted.

Configuration and Usage

  1. Configure your API key, base URL, default DPI, and label dimensions in the zplflow settings (zplflow.xml).
  2. Open the zplflow Preview tool window anchored on the right sidebar.
  3. Open any .zpl, .prn, or .label file and save (Ctrl+S or Cmd+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