VSCode中F1打开设置,首选项:打开工作区设置
{
// 配置latex
"editor.minimap.enabled": true, //控制是否显示缩略图。
//1: 准备编译工具。
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"%DOCFILE%"
]
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}
],
//2: 设置编译命令。
"latex-workshop.latex.recipes"