A local LaTeX development environment for VS Code.
Settings
In your .gitignore
:
*.aux
*.fdb_latexmk
*.fls
*.log
*.out
*.synctex.gz
*.bbl
*.blg
In your .vscode/settings.json
:
{
"latex-workshop.latex.autoClean.run": "onBuilt"
}
Installation
A short checklist:
- Install the LaTeX Workshop extension into your installation of VS Code.
- Install a local TeX distribution. I strongly recommend MiKTeX because it has a fast install and is relatively lightweight compared to competing distributions like TeX Live (since it only grabs packages that you use and not every package ever published).
- Download MiKTeX here.
- And for it to work with LaTeX Workshop you also need to download Perl. I recommend Strawberry Perl as a great Windows distribution of the language.
- Check your environment variables. The extension probably won’t know MiKTeX is installed.
- In
Path
, I haveC:/Program Files/MiKTeX/tex4ht/bin
. It may be different for your machine.
- In