[Tex/LaTex] VS Code – Latex Workshop – custom recipes file location


I want to use the vs code extension Latex Workshop and want to set up my own recipe for compiling the documents.
The faq are good but missing the part where they tell where the recipes are stored and where to put your custom recipe.
Could someone help me out on that?

Best Answer

Assume that you have to make a recipe that uses pdflatex once only, not pdflatex > biblatex > pdflatex > pdflatex.

In settings.json:

  • Add this to "latex-workshop.latex.recipes":

        "name": "pdflatex",
        "tools": [
  • Add this to "latex-workshop.latex.tools" if it is not present:

        "name": "pdflatex",
        "command": "pdflatex",
        "args": [
            "--shell-escape", // if you want to have the shell-escape flag

Don't forget to add the .tex after "%DOC%".