I have VScode and LaTeX workshop and usually compile by typing ctrl-alt-B. This does the full run (pdflatex, bibtex, 2 x pdflatex). However, I am often happy with just one LaTeX run, so I have added a matching recipe and have put latex-workshop.recipes on a keybinding, but then I still have to select which recipe I want to use. I guess that I can code that into the keybinding's args parameter, but so far that produced errors. Right now I have

    "key": "ctrl+alt+h",
    "command": "latex-workshop.recipes",
    "args": [

If I now press the key, it does the full run and complains: Failed to resolve build recipe: onelatex. How to make it work?

1 Answer 1


You need to provide the string directly as args, not in a list.

    "key": "Ctrl+Alt+H",
    "when": "resourceExtname == .tex",
    "command": "latex-workshop.recipes",
    "args": "onelatex"

Does this work for you?

  • 1
    Yes, lovely. That's what I needed!
    – cxxl
    Commented May 19, 2021 at 6:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .