0

When you double click on a PDF file opened with SumatraPDF in Windows OS, it'll invoke a command (see the blue rectangle in the following image).

enter image description here

If the PDF file and its LaTeX source file are in the same folder, then double clicking on the PDF file will open the source file with notepad. However, I do not know what to enter instead of notepad %f so that the source file is opened in Visual Studio Code. Any ideas?

  • Associate the source file with vscode. – Biswapriyo Mar 15 at 13:12
  • @Biswapriyo I meant double-clicking on the PDF file so vscode opens the source file (this is currently the case for notepad not vscode). I didn't mean double-clicking on the source file. – Opt Mar 16 at 2:09
  • And how vscode will know the corresponding source file of that specific PDF? – Biswapriyo Mar 16 at 15:12
  • @Biswapriyo I just know that notepad can recognise the corresponding source file. I think vscode is advanced enough to be able to do that, but I don't know how. – Opt Mar 17 at 8:47
  • Doesn't code %f work? – ihmels Mar 17 at 16:22

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.