'VSCode change aux directory of latex workshop

My current config is the following:

  "latex-workshop.latex.tools": [{
    "name": "texify",
    "command": "texify",
    "args": [
      "--synctex",
      "--pdf",
      "--tex-option=\"-interaction=nonstopmode\"",
      "--tex-option=\"-file-line-error\"",
      "%DOC%.tex"
    ],
      "env": {}
  }
]

However, I am trying to put all the files that are generated, which aren't the output pdf (so .aux and .log for now), somewhere else so it doesn't fill up everything. I don't care if it's a subfolder, or one folder for all project. How can I do this?



Solution 1:[1]

You probably moved on from your question but for others with this question, I have found the answer here:

https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#latex-tools

Basically, add this to your settings.json:

"latex-workshop.latex.outDir": "<Name of your output dir>"

(Note: It will include the .pdf file there too)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DI Kappelle