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).
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?