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:

  1. Install the LaTeX Workshop extension into your installation of VS Code.
  2. 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).
    1. Download MiKTeX here.
    2. 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.
  3. Check your environment variables. The extension probably won’t know MiKTeX is installed.
    1. In Path, I have C:/Program Files/MiKTeX/tex4ht/bin. It may be different for your machine.