VSCode +LaTeX-Workshop +Sumatra PDF
// settings.json
{
"latex-workshop.view.pdf.viewer": "external",
"latex-workshop.view.pdf.external.command": {
"command": "C:\\path\\to\\SumatraPDF.exe",
"args": [
"-reuse-instance",
"-inverse-search",
"\"C:\\Users\\username\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"C:\\Users\\username\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\out\\cli.js\" -g \"%f:%l\"",
"%PDF%"
]
},
"latex-workshop.view.pdf.external.synctex": {
"command": "C:\\path\\to\\SumatraPDF.exe",
"args": [
"-reuse-instance",
"-forward-search",
"%TEX%",
"%LINE%",
"%PDF%"
]
}
}
References: