TeX Side Preview is a Visual Studio Code extension that replicates Overleaf’s side-by-side LaTeX workflow: source on the left, compiled PDF on the right. It recompiles on save (or via a recompile command), preserves scroll position, and uses SyncTeX for two-way navigation - double‑clicking the PDF jumps to the source and a keyboard shortcut jumps from source to the PDF. The preview supports clickable \ref/\cite/\url links, selectable and copyable PDF text, zoom and fit controls, multi-file projects via a %!TEX root magic comment, and visible compile errors that jump to the offending lines. Common shortcuts are provided (Open Preview: Alt+Cmd+V / Ctrl+Alt+V; Jump to PDF: Alt+Cmd+J / Ctrl+Alt+J; Recompile: Cmd+Enter / Ctrl+Enter).
It runs local LaTeX (auto picks latexmk, tectonic or pdflatex) so a compiler must be installed; defaults and engines are configurable (outDir defaults to .texbuild). Two-way Overleaf sync uses Overleaf’s Git integration: cloning requires a token, saves are auto‑committed and pushed after a short delay (default 2s) and pulls occur periodically (default 60s); conflicts open VS Code’s merge UI for resolution. The token is kept in VS Code’s encrypted storage and passed to git only via environment variables; build output is excluded from pushes. Settings, commands, troubleshooting tips and platform install notes are included.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.