Specify the file to be compiled in VSCode Latex Workshop

Viewed 2941

I have a folder with two .tex files, say a.tex and b.tex opened in VSCode. When launching Recipe: latexmk (Latex Workshop extension) from the Commands tab, or Ctrl+Alt+B, it always compiles a.tex even when b.tex is focused in the editor.

How do I specify which .tex file I'd like to be compiled, if not by focusing in the editor?

1 Answers
Related