Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Native LyXNew to Visual Studio Code? Get it now.
Native LyX

Native LyX

Hassan A. Bukhari

|
2 installs
| (0) | Free
Edit local LyX documents in the real native application inside VS Code (Linux x64 preview)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Native LyX for VS Code

Edit workspace .lyx files in the real installed LyX application, displayed inside a VS Code editor tab. Native menus, toolbars, equation editing and dialogs remain native. Save through LyX to the original document. The connected editor adds no toolbar.

Linux x64 preview, tested initially on Ubuntu 24.04. Local desktop VS Code only. Windows, macOS, web, WSL/SSH and remote/container workspaces are unsupported. This independent integration is not an official LyX or Microsoft product.

Source and support: GitHub repository, report an issue.

Setup

Install LyX, standalone Node 18+, TigerVNC, Openbox, websockify and supporting tools on the machine running VS Code. Ubuntu 24.04 package names:

sudo apt install --no-install-recommends lyx nodejs tigervnc-standalone-server openbox websockify wmctrl xauth dbus-x11 fonts-dejavu-core texlive-latex-base texlive-latex-recommended

Install the Linux x64 VSIX using Extensions: Install from VSIX…. Run Native LyX: Check Dependencies. Open a trusted local workspace and click a .lyx file. If another editor owns the association, choose Reopen Editor With… → Native LyX and configure it as the default for *.lyx (nativeLyx.editor).

The extension discovers installed executables on PATH. Set nativeLyxRelease executable paths explicitly for multiple LyX versions or a shell-only Node installation. lyxPath selects your installed LyX; no LyX binary is bundled. Width, height, DPI, autosave interval, session limit and persistent storage root are configurable in Settings. No dependencies are installed during activation.

Editing and session lifetime

Click inside LyX before typing. Use native Ctrl+S, Ctrl+Z, Ctrl+Y and Ctrl+M for save, undo, redo and math. Personal VS Code keybindings may take precedence; native menus are available. VS Code Save All, autosave, dirty dots and close prompts do not represent native buffers.

Each canonical file has its own native process/private desktop. Closing its Native LyX tab requests normal LyX Quit. A saved document closes without a save question. If there is unsaved work, its real Save/Don't Save/Cancel dialog appears in a temporary native tab: Save or Don't Save completes closure; Cancel restores the document tab and its edits. Close All resolves native decisions in sequence. After normal exit, only that session's owned desktop, bridge, watchers and command pipes are closed. The broker exits after a short idle grace when no owned session processes remain. Profiles and saved snapshots stay on disk for later reopening.

Switching tabs and moving editor groups do not close native sessions. Code reload and connection loss preserve live native buffers. Native LyX: Retained Sessions lists sessions left by reload, older versions or unexpected disconnects. Save/close work in LyX before Native LyX: End Session, whose confirmation explicitly permits discarding remaining buffers. Window/app shutdown or uninstall does not guarantee native save decisions; resolve documents before exiting VS Code.

Reopen Editor With… → Text Editor requests normal native LyX Quit for that file's private session. If LyX asks about unsaved work, its real dialog appears in a temporary native tab: choose Save, Don't Save or Cancel there. Save/Don't Save completes the switch and stops that session's private desktop/bridge; Cancel returns to Native LyX with the buffer intact. Choosing Native LyX again starts the installed application for the same file. Other managed files and ordinary desktop LyX instances are not closed. A timeout or error preserves native work and restores the editor for inspection instead of force-quitting it.

After a PC shutdown or native LyX exit, click the file again to restart LyX with its existing profile. No separate extension recovery command is required. LyX may display its usual autosave/emergency recovery dialog. Edits newer than the last successful native autosave are not guaranteed. Disk revisions observed by the watcher are available through Native LyX: Open Saved File Snapshots. Keep ordinary backups. Native external-change prompts require an explicit reload/overwrite decision; no automatic merge is provided.

Preview limitations

  • Plain-text clipboard bridging only. Rich objects, images, drag/drop and primary-selection interoperability across separate sessions are unsupported.
  • Native comparison, File Open and Save As can switch buffers without blocking native input. The tab title follows the current filename when LyX answers the periodic check; its workspace resource remains the originally selected file. Reopening that workspace resource selects its original native buffer. Only the original resource has extension snapshots; Save As does not rebind it.
  • Native profiles are separate from ordinary desktop LyX preferences. Dialogs must fit within the editor group. Canvas viewing has limited accessibility.
  • Snapshots cannot capture every rapid external write or unsaved native edit. They are retained without automatic deletion; monitor storage usage.
  • Desktop transport stays local: private VNC Unix socket, loopback bridge and a random connection token. This does not isolate native LyX from your user account.

To restore previous opening behavior, save/end native sessions, disable/uninstall the extension and configure *.lyx back to your previous editor. Persistent profiles/snapshots are intentionally retained; do not delete them while running. The bundled src/cli.cjs provides ownership-aware session control after uninstall.

User guides: installation and removal, configuration, limitations, and recovery.

Build and package

Use Node 22+ and npm for the locked build tools:

npm ci --ignore-scripts
npm run build
npm run package

The package command creates a Linux x64 pre-release .vsix locally. Install it through Extensions: Install from VSIX…. Generated packages are ignored by Git. Building a package does not publish it or establish interactive validation.

MPL-2.0 source and noVNC 1.7.0 source/licenses are included in the VSIX. See LICENSE and THIRD_PARTY_NOTICES.md.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft