(标签没找到Latex)
在参考某乎 https://zhuanlan.zhihu.com/p/38178015 的过程中,到了最后一步出现了如图右下角所示的报错
{// LaTeX
"latex-workshop.latex.autoBuild.run": "never",
"latex-workshop.message.error.show": false,
"latex-workshop.message.warning.show": false,
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "xelatex",
"tools": [
"xelatex"
],
},
{
"name": "pdflatex",
"tools": [
"pdflatex"
]
},
{
"name": "xe->bib->xe->xe",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
},
{
"name": "pdf->bib->pdf->pdf",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
}
],
"latex-workshop.view.pdf.viewer": "external",
"latex-workshop.view.pdf.external.viewer.command": "D:/Sumatra PDF/Sumatra PDF/SumatraPDF.exe",
"latex-workshop.view.pdf.external.viewer.args": [
"-forward-search",
"%TEX%",
"%LINE%",
"-reuse-instance",
"-inverse-search",
"\"D:/Visual Studio/Microsoft VS Code/Code.exe\" \"D:/Visual Studio/Microsoft VS Code/resources/app/out/cli.js\" -gr \"%f\":\"%l\"",
"%PDF%"
],
"latex-workshop.view.pdf.external.synctex.command": "D:/Sumatra PDF/Sumatra PDF/SumatraPDF.exe",
"latex-workshop.view.pdf.external.synctex.args": [
"-forward-search",
"%TEX%",
"%LINE%",
"-reuse-instance",
"-inverse-search",
"\"D:/Visual Studio/Microsoft VS Code/Code.exe\" \"D:/Visual Studio/Microsoft VS Code/resources/app/out/cli.js\" -gr \"%f\":\"%l\"",
"%PDF%",
],
"latex.linter.enabled": false}
请求援助!
step1:“文件”->“首选项”->“设置”;搜索“run code”;
step2:搜索结果往下划拉,找到“Code-runner:Executor Map”,点击“在setting.json中编辑”;
step3:点开基本上就会直接出现在“code-runner.executorMap”的位置,如果你的不在,em就划拉找一下;添加你自己电脑上chorme的安装位置,我的就是这个【"html": ""C:\Program Files\Google\Chrome\Application\chrome.exe"",】,至于【"javascript": "node",】,文件里没有就添上,有就不用;
然后保存,重新运行一下