I write text files in markdown format, in Visual Studio Code. I have a powershell script (.ps1) that I use to convert a markdown file (.md) to a pdf file.
Currently, I have to go to the .ps1 file to execute every time I want to generate the pdf-file. I would like to run the .ps1 file without leaving the markdown file, preferably with a hotkey (f5?). Can anyone explain how to do this?