# [Tex/LaTex] Setting up LaTeX in VS Code

miktexvisual-studio-code

I am attempting to set up LaTeX in VS Code.

I have installed MiKTeX and I am able to create TeX files and pdfs using TeXworks.

I have installed the TeX workshop extension in Visual Studio Code. Yet I still cannot use TeX workshop within Visual Studio Code. I often get this error:

Recipe terminated with fatal error: spawn latexmk ENOENT


Another error I get is:

Cannot view file PDF file. File not found: C:Users\myname\Documents\Programs\VSCode\LaTeX\LaTeX workshop.pdf


What can I do to get this to work? Any help is appreciated.

I need to install latexmk (I have done this using the MiKTeX console).
Then, to run latexmk I have installed strawberry perl.