This editor is configured to look best with a font that is not pre-installed; see Font Installation for details.
This devcontainer provides a ready-to-use environment for editing and scripting Typst documents. It comes pre-installed with Git, Typst, Pandoc, and a set of extensions for both code and prose workflows. System-wide installation of all Google Fonts and the Monaspace family ensures consistent, high-quality typography for all documents, eliminating the need to manually add fonts.
Add this Dev Container directly as your .devcontainer folder:
-
Navigate to your project’s root directory.
-
Create the config file with the following content:
echo '{ "image": "ghcr.io/accommodus/typst-editor-devcontainer:latest" }' > .devcontainer.json
If your project needs more than one Dev Container (for example, one for code and one for writing papers), you can organize each configuration in its own subdirectory:
-
Navigate to your project’s root directory.
-
Create the
.devcontainer/typst_editor/devcontainer.jsonfile with the following content::mkdir -p .devcontainer/typst_editor/ && echo '{ "image": "ghcr.io/accommodus/typst-editor-devcontainer:latest" }' > .devcontainer/typst_editor/devcontainer.json
-
When reopening the project, select the desired Dev Container configuration from the list.
Instructions based on your operating system. See this.
- Open the project in VS Code
- Install the Dev Containers extension
- Press
F1orShift+Ctrl+Pto open the Command Palette and selectDev Containers: Reopen in Container. - You are ready to use Typst.
-
Base Image: Debian Bookworm
-
Pre-installed Tools:
-
Fonts Installed in Container:
- All Google Fonts: broad typographic choice
- GitHub Monaspace Family: (Neon, Argon, Xenon, Radon, Krypton) — modern variable monospace with advanced “texture healing”
The editor settings are tailored to create an ideal environment for both scripting and drafting documents in Typst.
- Uses the Monaspace Xenon font if installed (with ligatures and weight 500) for a modern, consistent look across code and prose.
- Font size set to 16 px for comfortable, accessible reading and editing.
- Automatic formatting on save ensures consistent code style.
- Editor wraps lines for easier reading and editing of long paragraphs or code.
-
From features
- Tinymist Typst (Myriad Dreamin)