latex-vscodelisted
Install: claude install-skill mehdiforoozandeh/skills
# LaTeX in VS Code (Overleaf-equivalent)
Turn VS Code into an Overleaf replacement and operate it from the CLI. The body
below is the general playbook; machine-specific facts are fenced in the last
section. Prefer **checks over assumptions** — verify each tool/path on the host
you're actually on.
## Mental model
LaTeX Workshop (`james-yu.latex-workshop`) is an **orchestrator, not a compiler**.
You need two things:
1. A **TeX distribution** providing `latexmk`, `pdflatex`/`lualatex`, `bibtex`
(TeX Live / MacTeX / MiKTeX). Verify: `command -v latexmk pdflatex bibtex`.
If absent, install one (`brew install --cask mactex`, `apt install
texlive-full`, or an HPC module) — the extension ships none of these.
2. **LaTeX Workshop** + a few companions (LTeX for grammar, Live Share for
collaboration, Code Spell Checker for spelling).
## Configuration
Settings location depends on context:
- **Local VS Code**: `~/.config/Code/User/settings.json` (Linux),
`~/Library/Application Support/Code/User/settings.json` (macOS).
- **Remote-SSH / WSL / container**: server-side
`~/.vscode-server/data/Machine/settings.json` (Machine scope = all folders on
that host). There is no `~/.config/Code` on a Remote-SSH host.
- **Per-project override**: `.vscode/settings.json` in the workspace.
Recommended settings (the Overleaf build loop):
```jsonc
{
"latex-workshop.latex.autoBuild.run": "onSave", // recompile on save
"latex-workshop.latex.recipe.default": "latexmk", // one recipe: