ScriptsApr 13, 2026·3 min read

Lapce — Lightning-Fast Code Editor Written in Rust

Lapce is a high-performance code editor written in Rust with a native GUI. It features modal editing (Vim-like), remote development via SSH, built-in terminal, LSP support, and a plugin system powered by WASI — all with sub-millisecond rendering.

TL;DR
Lapce is a Rust-built code editor with GPU rendering, Vim-style modal editing, remote development, and a WASI plugin system.
§01

What it is

Lapce is an open-source code editor written in Rust that prioritizes performance above all else. It uses GPU-accelerated rendering via wgpu to achieve sub-millisecond frame times and startup speeds that Electron-based editors cannot match. Lapce brings Vim-style modal editing into a modern GUI with first-class LSP support.

The editor targets developers who want the speed of terminal editors like Neovim with the visual polish of VS Code. It includes syntax highlighting via Tree-sitter, an integrated terminal, remote development over SSH, and a plugin system powered by WASI.

§02

How it saves time or tokens

Lapce eliminates the lag that slows down editing in large codebases. GPU rendering means scrolling, searching, and navigating remain smooth regardless of file size. The modal editing system reduces keystrokes for common operations, and the built-in remote development support lets you edit files on remote servers without configuring separate SSH tools.

The WASI-based plugin system runs extensions in a sandboxed WebAssembly runtime, so plugins cannot crash the editor or introduce security vulnerabilities -- a common pain point with VS Code extensions.

§03

How to use

  1. Install Lapce: brew install --cask lapce on macOS, flatpak install dev.lapce.lapce on Linux, or download from lapce.dev.
  2. Open a project directory. Lapce auto-detects language servers for syntax intelligence.
  3. Use Vim keybindings by default (h/j/k/l navigation, i for insert mode) or switch to a standard keybinding mode in settings.
§04

Example

# Install on macOS
brew install --cask lapce

# Install on Linux via Flatpak
flatpak install dev.lapce.lapce

# Open a project
lapce ~/my-project

# Remote development via SSH
# Use the remote connection panel in Lapce to connect to a server
# Edit files directly on the remote machine with local UI performance
§05

Related on TokRepo

§06

Common pitfalls

  • Lapce is under active development and some features available in VS Code or Neovim may not yet have equivalents; check the plugin registry before switching full-time.
  • GPU rendering requires a compatible graphics driver; on headless servers or minimal VMs, Lapce may not start without a display server.
  • The WASI plugin ecosystem is smaller than VS Code's marketplace; evaluate whether your essential extensions are available before migrating.

Frequently Asked Questions

How does Lapce compare to VS Code?+

Lapce is significantly faster than VS Code due to native Rust code and GPU rendering versus VS Code's Electron-based architecture. However, VS Code has a much larger extension ecosystem. Lapce is best for developers who prioritize speed and use Vim keybindings.

Does Lapce support Vim keybindings?+

Yes. Vim-style modal editing is a first-class feature and enabled by default. You get normal, insert, visual, and command modes with standard Vim motions and keybindings built into the editor core.

Can I develop on remote servers with Lapce?+

Yes. Lapce includes built-in remote development over SSH. The editor runs its UI locally with GPU acceleration while executing language servers and file operations on the remote machine.

What is the WASI plugin system?+

Lapce plugins run as WebAssembly modules in a WASI sandbox. This means plugins are cross-platform by default and cannot crash the editor or access system resources outside their sandbox, providing better security than traditional extension models.

What languages does Lapce support?+

Lapce supports any language that has a Language Server Protocol (LSP) implementation. Tree-sitter provides syntax highlighting for most popular languages out of the box, and additional language support can be added via plugins.

Citations (3)
  • Lapce GitHub— Lapce is a code editor written in Rust with GPU-accelerated rendering
  • Lapce Documentation— Uses wgpu for GPU rendering and Tree-sitter for syntax highlighting
  • WASI— WASI specification for WebAssembly system interface

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets