Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Typst LSPNew to Visual Studio Code? Get it now.
Typst LSP

Typst LSP

Nathan Varner

nathanvarner.com
|
6,063 installs
| (6) | Free
A language server for Typst
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Typst LSP VS Code Extension

A brand-new VS Code extension for Typst.

Features

  • Syntax highlighting, error reporting, code completion, and function signature help
  • Compiles to PDF on save (configurable to as-you-type, or can be disabled)

Usage Tips

  • This extension compiles to PDF, but it doesn't have a PDF viewer yet. To view the output as you work, install a PDF viewer extension, such as vscode-pdf.
  • To configure when PDFs are compiled:
    1. Open settings
      • File -> Preferences -> Settings (Linux, Windows)
      • Code -> Preferences -> Settings (Mac)
    2. Search for "Typst Export PDF"
    3. Change the Export PDF setting
      • onSave makes a PDF after saving the Typst file
      • onType makes PDF files live, as you type
      • never disables PDF compilation

Technical

The extension uses Typst LSP on the backend.

Both language-configuration.json and typst.tmLanguage.json are from Typst. See the source here.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft