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.
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.
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.
How to use
- Install Lapce:
brew install --cask lapceon macOS,flatpak install dev.lapce.lapceon Linux, or download from lapce.dev. - Open a project directory. Lapce auto-detects language servers for syntax intelligence.
- Use Vim keybindings by default (h/j/k/l navigation, i for insert mode) or switch to a standard keybinding mode in settings.
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
Related on TokRepo
- AI coding tools -- editors and IDE tools for AI-assisted development
- Automation tools -- developer productivity utilities
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
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.
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.
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.
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.
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
Related on TokRepo
Discussion
Related Assets
NAPI-RS — Build Node.js Native Addons in Rust
Write high-performance Node.js native modules in Rust with automatic TypeScript type generation and cross-platform prebuilt binaries.
Mamba — Fast Cross-Platform Package Manager
A drop-in conda replacement written in C++ that resolves environments in seconds instead of minutes.
Plasmo — The Browser Extension Framework
Build, test, and publish browser extensions for Chrome, Firefox, and Edge using React or Vue with hot-reload and automatic manifest generation.