// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
// {
// "key": "ctrl+b",
// "command": "python.execInTerminal",
// "when": "resourceExtname == .py",
// },
{
"key": "ctrl+b",
"command": "latex-workshop.recipes",
"when": "resourceExtname == .tex",
},
{
"key": "f10",
"command": "workbench.action.terminal.toggleTerminal",
},
{
"key": "ctrl+b",
"command": "code-runner.run"
},
]
{
"python.jediEnabled": false,
// Latex workshop
"latex-workshop.latex.autoBuild.run": "never",
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"%DOC%"
]
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "pdflatex -> bibtex -> pdflatex*2",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
},
{
"name": "xelatex",
"tools": [
"xelatex"
]
},
{
"name": "latexmk",
"tools": [
"latexmk"
]
},
],
"latex-workshop.view.pdf.viewer": "external",
"latex-workshop.view.pdf.external.command": {
"command": "C:/Program Files/SumatraPDF/SumatraPDF.exe",
"args": [
"%PDF%"
]
},
// 正向搜索
"latex-workshop.view.pdf.external.synctex": {
"command": "C:/Program Files/SumatraPDF/SumatraPDF.exe",
"args": [
"-forward-search",
"%TEX%",
"%LINE%",
"%PDF%"
]
},
"latex-workshop.latex.clean.fileTypes": [
"*.aux",
"*.bbl",
"*.blg",
"*.idx",
"*.ind",
"*.lof",
"*.lot",
"*.out",
"*.toc",
"*.acn",
"*.acr",
"*.alg",
"*.glg",
"*.glo",
"*.gls",
"*.ist",
"*.fls",
"*.log",
"*.fdb_latexmk",
"*.synctex.gz"
],
// Python
"terminal.integrated.shell.windows": "C:\WINDOWS\System32\cmd.exe",
"python.pythonPath": "C:\Miniconda3\envs\spyder\python.exe",
"editor.largeFileOptimizations": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"code-runner.executorMap": {
"javascript": "node",
"php": "C:\php\php.exe",
"python": "python",
"perl": "perl",
"ruby": "C:\Ruby23-x64\bin\ruby.exe",
"go": "go run",
"html": ""C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"",
"java": "cd $dir && javac -encoding utf-8 $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
},
"code-runner.runInTerminal": true, //强制使用终端输出, 避免中文乱码
}