Compile LaTeX using FormaTeX API directly from VS Code.
Install
Features
- Secure API key storage using VS Code Secret Storage
- Compile current
.tex document
- Compile selected
.tex file from Explorer
- Compile full LaTeX project with dependency packaging
- Syntax check without full compilation
- Save output PDFs to
.formatex/output
- Show compile logs and diagnostics
Commands
FormaTeX: Set API Key
FormaTeX: Clear API Key
FormaTeX: Compile Current Document
FormaTeX: Compile Selected File
FormaTeX: Compile Project
FormaTeX: Check Syntax
FormaTeX: Open Last PDF
FormaTeX: Show Compile Output
FormaTeX: Show Usage
Quick Start
- Install the extension from Marketplace.
- Open a
.tex file in VS Code.
- Run
FormaTeX: Set API Key from the command palette.
- Right-click in editor or explorer and choose:
FormaTeX: Compile Current Document
FormaTeX: Compile Selected File
FormaTeX: Compile Project
Compiled PDFs are saved in .formatex/output.
Screenshots



Development
npm install
npm run compile
Press F5 in VS Code to run the Extension Development Host.
Packaging
npm run package
This generates a .vsix artifact.
Publishing
npx @vscode/vsce login formatex-io
npx @vscode/vsce publish
| |