Enable xelatex in Latex Workshops for Visual Studio Code

The simplest solution found in issues here, but in more common formulation:

Copying the content, simply go to PreferencesExtensionsLaTeX (meaning LaTeX is LaTeX workshops), find gear-wheel button with name Manage, then find in the list link to settings.json under any tag, open and type next:

"latex-workshop.latex.tools": [{
    "name": "latexmk",
    "command": "latexmk",
    "args": [
        "-xelatex",
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "%DOC%"
    ]
}],

Reloading the VSCode may be needed.

Also setting.json file could be found in C:\Users\*\AppData\Roaming\Code\User\settings.json.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)