SumatraPDF:设置 - 选项 - 请输入您双击 PDF 文件后调用的命令行(E):
//注意修改成自己的安装路径
"D:\Softwares\Microsoft VS Code\Code.exe" "D:\Softwares\Microsoft VS Code\resources\app\out\cli.js" --ms-enable-electron-run-as-node -r -g "%f:%l"
VS code: settings.json
//正向搜索配置
"latex-workshop.view.pdf.viewer": "external",
"latex-workshop.view.pdf.external.viewer.command": "D:/Softwares/SumatraPDF/SumatraPDF.exe", //注意修改成自己的安装路径
"latex-workshop.view.pdf.external.viewer.args": [
"%PDF%"
],
"latex-workshop.view.pdf.external.synctex.command": "D:/Softwares/SumatraPDF/SumatraPDF.exe", //注意修改成自己的安装路径
"latex-workshop.view.pdf.external.synctex.args": [
"-forward-search",
"%TEX%",
"%LINE%",
"%PDF%",
],