Reputation: 854
I set up the latex-workshop extension in vscode to run only a single pdflatex
on each save instead of the whole latexmk
, to make it faster. Now I want to bind latexmk
to a keyboard shortcut. I tried
{
"key": "f9",
"command": "latex-workshop.latexmk",
"when": "editorLangId == latex"
},
in keybindings.json
, but that only gives a popup saying command 'latex-workshop.latexmk' not found
when pressing f9
.
What do I have to put under command
?
Upvotes: 1
Views: 1615
Reputation: 854
After raising the question as an issue on github, it was pointed out to me that it had already been answered here.
Here's what I put in keybindings.json
do make it work:
{
"key": "f9",
"command": "latex-workshop.recipes",
"args": "latexmk 🔃",
"when": "editorLangId == latex"
},
Upvotes: 2