Skip to content
Snippets Groups Projects
package.json 109 KiB
Newer Older
James-Yu's avatar
James-Yu committed
{
James-Yu's avatar
James-Yu committed
  "name": "latex-workshop",
  "displayName": "LaTeX Workshop",
James-Yu's avatar
James-Yu committed
  "description": "Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.",
James-Yu's avatar
James-Yu committed
  "icon": "icons/icon.png",
James Yu's avatar
James Yu committed
  "version": "10.3.2",
James-Yu's avatar
James-Yu committed
  "publisher": "James-Yu",
  "license": "MIT",
  "homepage": "https://github.com/James-Yu/LaTeX-Workshop",
  "repository": {
    "type": "git",
    "url": "https://github.com/James-Yu/LaTeX-Workshop.git"
  },
  "engines": {
    "vscode": "^1.88.0"
James-Yu's avatar
James-Yu committed
  },
  "categories": [
    "Programming Languages",
    "Snippets",
    "Linters",
    "Formatters"
James-Yu's avatar
James-Yu committed
  ],
  "keywords": [
    "latex",
    "tex",
    "compile",
    "preview",
    "hint"
  ],
  "activationEvents": [
    "onCommand:latex-workshop.activate",
    "onWebviewPanel:latex-workshop-pdf"
James-Yu's avatar
James-Yu committed
  ],
  "main": "./out/src/main.js",
  "capabilities": {
    "virtualWorkspaces": {
      "supported": "limited",
      "description": "Only a few features are supported."
    },
Takashi Tamura's avatar
Takashi Tamura committed
    "untrustedWorkspaces": {
      "supported": false
    }
James-Yu's avatar
James-Yu committed
  "contributes": {
    "languages": [
James-Yu's avatar
James-Yu committed
        "aliases": [
          "TeX",
          "tex"
        ],
        "extensions": [
          ".sty",
          ".cls",
          ".bbx",
James-Yu's avatar
James-Yu committed
        ],
        "configuration": "./syntax/latex-language-configuration.json"
James-Yu's avatar
James-Yu committed
      },
Jerome Lelong's avatar
Jerome Lelong committed
        "id": "doctex",
        "aliases": [
Jerome Lelong's avatar
Jerome Lelong committed
          "DocTeX",
          "doctex"
        ],
        "extensions": [
        "configuration": "./syntax/doctex-language-configuration.json"
James-Yu's avatar
James-Yu committed
      {
James-Yu's avatar
James-Yu committed
        "aliases": [
          "LaTeX",
          "latex"
        ],
        "extensions": [
James-Yu's avatar
James-Yu committed
        ],
        "configuration": "./syntax/latex-language-configuration.json"
James-Yu's avatar
James-Yu committed
        "aliases": [
          "BibTeX",
          "bibtex"
        ],
        "extensions": [
          ".bib"
        ],
        "configuration": "./syntax/bibtex-language-configuration.json"
James-Yu's avatar
James-Yu committed
      },
Zeping Lee's avatar
Zeping Lee committed
      {
        "id": "bibtex-style",
        "aliases": [
          "BibTeX style"
        ],
        "extensions": [
          ".bst"
        ],
        "configuration": "./syntax/bibtex-style-language-configuration.json"
Zeping Lee's avatar
Zeping Lee committed
      },
James-Yu's avatar
James-Yu committed
      {
        "id": "latex-expl3",
        "aliases": [
James-Yu's avatar
James-Yu committed
        ],
        "configuration": "./syntax/latex3-language-configuration.json"
James-Yu's avatar
James-Yu committed
      },
Igor Koop's avatar
Igor Koop committed
      {
        "id": "pweave",
        "aliases": [
          "Pweave"
        ],
        "extensions": [
          ".pnw",
          ".ptexw"
        ],
        "configuration": "./syntax/latex-language-configuration.json"
      },
Jerome Lelong's avatar
Jerome Lelong committed
      {
        "id": "jlweave",
        "aliases": [
          "Weave.jl"
        ],
        "extensions": [
          ".jnw",
          ".jtexw"
        ],
        "configuration": "./syntax/latex-language-configuration.json"
Jerome Lelong's avatar
Jerome Lelong committed
      },
      {
        "id": "rsweave",
        "aliases": [
          "R Sweave"
        ],
        "extensions": [
          ".rnw",
          ".Rnw",
          ".Rtex",
        "configuration": "./syntax/latex-language-configuration.json"
        "id": "cpp_embedded_latex",
        "configuration": "./syntax/latex-cpp-embedded-language-configuration.json"
        "id": "markdown_latex_combined",
        "configuration": "./syntax/markdown-latex-combined-language-configuration.json"
      },
      {
        "id": "latex_workshop_log",
        "aliases": [
          "LaTeX Workshop Log"
        ],
        "configuration": "./syntax/latex-workshop-log-language-configuration.json"
James-Yu's avatar
James-Yu committed
      }
James-Yu's avatar
James-Yu committed
    ],
James-Yu's avatar
James-Yu committed
    "grammars": [
James-Yu's avatar
James-Yu committed
      {
James-Yu's avatar
James-Yu committed
        "scopeName": "text.tex",
        "path": "./syntax/TeX.tmLanguage.json"
James-Yu's avatar
James-Yu committed
      },
Jerome Lelong's avatar
Jerome Lelong committed
        "language": "doctex",
        "scopeName": "text.tex.doctex",
        "path": "./syntax/DocTeX.tmLanguage.json"
James-Yu's avatar
James-Yu committed
      {
        "language": "latex",
James-Yu's avatar
James-Yu committed
        "scopeName": "text.tex.latex",
        "path": "./syntax/LaTeX.tmLanguage.json",
        "embeddedLanguages": {
          "source.asymptote": "asymptote",
          "source.cpp": "cpp_embedded_latex",
          "source.css": "css",
          "source.dot": "dot",
          "source.gnuplot": "gnuplot",
          "text.html": "html",
          "source.java": "java",
          "source.js": "javascript",
          "source.julia": "julia",
          "source.lua": "lua",
          "source.python": "python",
          "source.ruby": "ruby",
          "source.scala": "scala",
          "source.ts": "typescript",
Valter Pires's avatar
Valter Pires committed
          "text.xml": "xml",
          "source.yaml": "yaml",
          "meta.embedded.markdown_latex_combined": "markdown_latex_combined"
James-Yu's avatar
James-Yu committed
      },
      {
        "language": "bibtex",
James-Yu's avatar
James-Yu committed
        "scopeName": "text.bibtex",
        "path": "./syntax/Bibtex.tmLanguage.json"
James-Yu's avatar
James-Yu committed
      },
Zeping Lee's avatar
Zeping Lee committed
      {
        "language": "bibtex-style",
        "scopeName": "source.bst",
        "path": "./syntax/BibTeX-style.tmLanguage.json"
Zeping Lee's avatar
Zeping Lee committed
      },
James-Yu's avatar
James-Yu committed
      {
        "language": "latex-expl3",
Jerome Lelong's avatar
Jerome Lelong committed
        "scopeName": "text.tex.latex",
        "path": "./syntax/LaTeX.tmLanguage.json",
        "embeddedLanguages": {
          "source.asymptote": "asymptote",
          "source.cpp": "cpp_embedded_latex",
          "source.css": "css",
          "source.dot": "dot",
          "source.gnuplot": "gnuplot",
          "text.html": "html",
          "source.java": "java",
          "source.js": "javascript",
          "source.julia": "julia",
          "source.lua": "lua",
          "source.python": "python",
          "source.ruby": "ruby",
          "source.scala": "scala",
          "source.ts": "typescript",
          "text.xml": "xml",
          "source.yaml": "yaml",
          "meta.embedded.markdown_latex_combined": "markdown_latex_combined"
        }
        "language": "markdown_latex_combined",
        "scopeName": "text.tex.markdown_latex_combined",
        "path": "./syntax/markdown-latex-combined.tmLanguage.json"
        "language": "cpp_embedded_latex",
        "scopeName": "source.cpp.embedded.latex",
        "path": "./syntax/cpp-grammar-bailout.tmLanguage.json",
        "embeddedLanguages": {
          "meta.embedded.assembly.cpp": "asm"
        }
Igor Koop's avatar
Igor Koop committed
      {
        "language": "pweave",
        "scopeName": "text.tex.latex.pweave",
        "path": "./syntax/Pweave.tmLanguage.json",
        "embeddedLanguages": {
          "source.python": "python"
        }
      },
Jerome Lelong's avatar
Jerome Lelong committed
      {
        "language": "jlweave",
        "scopeName": "text.tex.latex.jlweave",
        "path": "./syntax/JLweave.tmLanguage.json",
        "embeddedLanguages": {
          "source.julia": "julia"
        }
      },
      {
        "language": "rsweave",
        "scopeName": "text.tex.latex.rsweave",
        "path": "./syntax/RSweave.tmLanguage.json",
        "embeddedLanguages": {
James-Yu's avatar
James-Yu committed
          "source.r": "r"
      },
      {
        "language": "latex_workshop_log",
        "scopeName": "text.latex_workshop.log",
        "path": "./syntax/LaTeX-Workshop-Log.tmLanguage.json"
James-Yu's avatar
James-Yu committed
      }
James-Yu's avatar
James-Yu committed
    ],
    "snippets": [
      {
        "language": "latex",
        "path": "./data/latex-snippet.json"
Igor Koop's avatar
Igor Koop committed
      {
        "language": "pweave",
        "path": "./data/latex-snippet.json"
Igor Koop's avatar
Igor Koop committed
      },
Jerome Lelong's avatar
Jerome Lelong committed
      {
        "language": "jlweave",
        "path": "./data/latex-snippet.json"
Jerome Lelong's avatar
Jerome Lelong committed
      },
        "path": "./data/latex-snippet.json"
        "path": "./data/latex-snippet.json"
James-Yu's avatar
James-Yu committed
    "commands": [
      {
        "command": "latex-workshop.navigate-envpair",
        "title": "%command.navigate-envpair%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.select-envname",
        "title": "%command.select-envname%",
        "category": "LaTeX Workshop"
      },
        "command": "latex-workshop.select-envcontent",
        "title": "%command.select-envcontent%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.select-env",
        "title": "%command.select-env%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.multicursor-envname",
        "title": "%command.multicursor-envname%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.wrap-env",
        "title": "%command.wrap-env%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.surround",
        "title": "%command.surround%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.close-env",
        "title": "%command.close-env%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.toggle-equation-envname",
        "title": "%command.toggle-equation-envname%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.revealOutputDir",
        "title": "%command.revealoutput%",
        "category": "LaTeX Workshop"
      {
        "command": "latex-workshop.saveWithoutBuilding",
        "title": "%command.saveWithoutBuilding%",
        "category": "LaTeX Workshop"
      },
James-Yu's avatar
James-Yu committed
      {
        "command": "latex-workshop.build",
        "title": "%command.build%",
        "category": "LaTeX Workshop",
        "icon": "$(debug-start)",
        "enablement": "!virtualWorkspace"
James-Yu's avatar
James-Yu committed
      },
      {
        "command": "latex-workshop.recipes",
        "title": "%command.recipes%",
        "category": "LaTeX Workshop",
        "enablement": "!virtualWorkspace"
James-Yu's avatar
James-Yu committed
      {
        "command": "latex-workshop.view",
        "title": "%command.view%",
        "category": "LaTeX Workshop",
        "icon": "$(open-preview)",
        "enablement": "!virtualWorkspace"
        "command": "latex-workshop.tab",
        "title": "%command.tab%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.viewInBrowser",
        "title": "%command.viewInBrowser%",
        "category": "LaTeX Workshop",
        "enablement": "!virtualWorkspace"
      },
      {
        "command": "latex-workshop.viewExternal",
        "title": "%command.viewExternal%",
        "category": "LaTeX Workshop",
        "enablement": "!virtualWorkspace"
        "command": "latex-workshop.refresh-viewer",
        "title": "%command.refresh-viewer%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.kill",
        "title": "%command.kill%",
        "category": "LaTeX Workshop",
        "enablement": "!virtualWorkspace"
James-Yu's avatar
James-Yu committed
      {
        "command": "latex-workshop.synctex",
        "title": "%command.synctex%",
        "category": "LaTeX Workshop",
        "enablement": "!virtualWorkspace"
      },
      {
        "command": "latex-workshop.clean",
        "title": "%command.clean%",
        "category": "LaTeX Workshop",
        "enablement": "!virtualWorkspace"
      {
        "command": "latex-workshop.citation",
        "title": "%command.citation%",
        "category": "LaTeX Workshop",
        "enablement": "!virtualWorkspace"
        "command": "latex-workshop.addtexroot",
        "title": "%command.addtexroot%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.wordcount",
        "title": "%command.wordcount%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.changeHostName",
        "title": "%command.changeHostName%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.resetHostName",
        "title": "%command.resetHostName%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.compilerlog",
        "title": "%command.compilerlog%",
        "category": "LaTeX Workshop",
        "enablement": "!virtualWorkspace"
      {
        "command": "latex-workshop.log",
        "title": "%command.log%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.actions",
        "title": "%command.actions%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop-dev.parselog",
        "title": "%command-dev.parselog%",
        "category": "LaTeX Workshop DevTools"
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop-dev.parsetex",
        "title": "%command-dev.parsetex%",
James-Yu's avatar
James-Yu committed
        "category": "LaTeX Workshop DevTools"
      },
      {
        "command": "latex-workshop-dev.parsebib",
        "title": "%command-dev.parsebib%",
James-Yu's avatar
James-Yu committed
        "category": "LaTeX Workshop DevTools"
      {
        "command": "latex-workshop-dev.striptext",
        "title": "%command-dev.striptext%",
        "category": "LaTeX Workshop DevTools"
      },
      {
        "command": "latex-workshop.texdoc",
        "title": "%command.texdoc%",
        "category": "LaTeX Workshop"
      {
        "command": "latex-workshop.texdocUsepackages",
        "title": "%command.texdocUsepackages%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.promote-sectioning",
        "title": "%command.promote-sectioning%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.demote-sectioning",
        "title": "%command.demote-sectioning%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.select-section",
        "title": "%command.select-section%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.bibsort",
        "title": "%command.bibsort%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.bibalign",
        "title": "%command.bibalign%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.bibalignsort",
        "title": "%command.bibalignsort%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.openMathPreviewPanel",
        "title": "%command.openMathPreviewPanel%",
        "category": "LaTeX Workshop"
      },
      {
        "command": "latex-workshop.closeMathPreviewPanel",
        "title": "%command.closeMathPreviewPanel%",
        "category": "LaTeX Workshop"
Jerome Lelong's avatar
Jerome Lelong committed
      },
      {
        "command": "latex-workshop.toggleMathPreviewPanel",
        "title": "%command.toggleMathPreviewPanel%",
Jerome Lelong's avatar
Jerome Lelong committed
        "category": "LaTeX Workshop"
James-Yu's avatar
James-Yu committed
      }
James-Yu's avatar
James-Yu committed
    ],
James-Yu's avatar
James-Yu committed
    "keybindings": [
Jerome Lelong's avatar
Jerome Lelong committed
        "key": "ctrl+l alt+m",
        "mac": "cmd+l alt+m",
        "command": "latex-workshop.toggleMathPreviewPanel",
        "when": "editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && config.latex-workshop.bind.altKeymap.enabled"
        "key": "ctrl+l alt+b",
        "mac": "cmd+l alt+b",
        "when": "editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && config.latex-workshop.bind.altKeymap.enabled && !virtualWorkspace"
        "key": "ctrl+l alt+c",
        "mac": "cmd+l alt+c",
        "when": "editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && config.latex-workshop.bind.altKeymap.enabled && !virtualWorkspace"
        "key": "ctrl+l alt+v",
        "mac": "cmd+l alt+v",
        "when": "editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && config.latex-workshop.bind.altKeymap.enabled && !virtualWorkspace"
        "key": "ctrl+l alt+j",
        "mac": "cmd+l alt+j",
        "when": "editorTextFocus && editorLangId =~ /^latex$|^latex-expl3$|^doctex$/ && config.latex-workshop.bind.altKeymap.enabled && !virtualWorkspace"
        "key": "ctrl+l alt+x",
        "mac": "cmd+l alt+x",
Takashi Tamura's avatar
Takashi Tamura committed
        "command": "workbench.view.extension.latex-workshop-activitybar",
        "when": "config.latex-workshop.bind.altKeymap.enabled"
Jerome Lelong's avatar
Jerome Lelong committed
      {
        "key": "ctrl+alt+m",
        "mac": "cmd+alt+m",
        "command": "latex-workshop.toggleMathPreviewPanel",
        "when": "editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && !config.latex-workshop.bind.altKeymap.enabled"
Jerome Lelong's avatar
Jerome Lelong committed
      },
        "key": "ctrl+alt+b",
        "mac": "cmd+alt+b",
        "command": "latex-workshop.build",
        "when": "editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && !config.latex-workshop.bind.altKeymap.enabled && !virtualWorkspace"
        "key": "ctrl+alt+c",
        "mac": "cmd+alt+c",
        "command": "latex-workshop.clean",
        "when": "editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && !config.latex-workshop.bind.altKeymap.enabled && !virtualWorkspace"
      },
      {
        "key": "ctrl+alt+v",
        "mac": "cmd+alt+v",
        "command": "latex-workshop.view",
        "when": "editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && !config.latex-workshop.bind.altKeymap.enabled && !virtualWorkspace"
      },
      {
        "key": "ctrl+alt+j",
        "mac": "cmd+alt+j",
        "command": "latex-workshop.synctex",
        "when": "editorTextFocus && editorLangId =~ /^latex$|^latex-expl3$|^doctex$/ && !config.latex-workshop.bind.altKeymap.enabled && !virtualWorkspace"
      },
      {
        "key": "ctrl+alt+x",
        "mac": "cmd+alt+x",
Takashi Tamura's avatar
Takashi Tamura committed
        "command": "workbench.view.extension.latex-workshop-activitybar",
        "when": "!config.latex-workshop.bind.altKeymap.enabled"
        "key": "ctrl+l [",
        "mac": "cmd+l [",
        "when": "config.latex-workshop.bind.altKeymap.enabled && editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
        "command": "latex-workshop.promote-sectioning"
        "when": "config.latex-workshop.bind.altKeymap.enabled && editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
        "command": "latex-workshop.demote-sectioning"
      },
      {
        "key": "ctrl+alt+[",
        "mac": "cmd+alt+[",
        "when": "!config.latex-workshop.bind.altKeymap.enabled && editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
        "command": "latex-workshop.promote-sectioning"
      },
      {
        "key": "ctrl+alt+]",
        "mac": "cmd+alt+]",
        "when": "!config.latex-workshop.bind.altKeymap.enabled && editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
        "command": "latex-workshop.demote-sectioning"
        "key": "ctrl+l ctrl+enter",
        "mac": "cmd+l cmd+enter",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.item"
      },
      {
        "key": "ctrl+l ctrl+b",
        "mac": "cmd+l cmd+b",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.textbf"
        "key": "ctrl+l ctrl+i",
        "mac": "cmd+l cmd+i",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.textit"
        "key": "ctrl+l ctrl+u",
        "mac": "cmd+l cmd+u",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.underline"
        "key": "ctrl+l ctrl+e",
        "mac": "cmd+l cmd+e",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
        "command": "latex-workshop.shortcut.emph"
        "key": "ctrl+l ctrl+r",
        "mac": "cmd+l cmd+r",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.textrm"
        "key": "ctrl+l ctrl+t",
        "mac": "cmd+l cmd+t",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.texttt"
        "key": "ctrl+l ctrl+s",
        "mac": "cmd+l cmd+s",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.textsl"
        "key": "ctrl+l ctrl+c",
        "mac": "cmd+l cmd+c",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.textsc"
        "key": "ctrl+l ctrl+n",
        "mac": "cmd+l cmd+n",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.textnormal"
        "key": "ctrl+l ctrl+6",
        "mac": "cmd+l cmd+6",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.textsuperscript"
        "key": "ctrl+l ctrl+oem_minus",
        "mac": "cmd+l cmd+oem_minus",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.textsubscript"
        "mac": "ctrl+shift+m cmd+b",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.mathbf"
        "mac": "ctrl+shift+m cmd+i",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.mathit"
        "mac": "ctrl+shift+m cmd+r",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.mathrm"
        "mac": "ctrl+shift+m cmd+t",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.mathtt"
        "mac": "ctrl+shift+m cmd+s",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.mathsf"
        "key": "ctrl+m ctrl+shift+b",
        "mac": "ctrl+shift+m cmd+shift+b",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
James-Yu's avatar
James-Yu committed
        "command": "latex-workshop.shortcut.mathbb"
        "mac": "ctrl+shift+m cmd+c",
        "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
tecosaur's avatar
tecosaur committed
        "command": "latex-workshop.shortcut.mathcal"
      {
        "command": "expandLineSelection",
        "key": "ctrl+l ctrl+l",
        "mac": "cmd+l cmd+l",
        "when": "textInputFocus && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/"
      },
      {
        "command": "editor.action.toggleTabFocusMode",
        "key": "ctrl+l ctrl+m",
        "mac": "cmd+l ctrl+shift+m",
        "when": "textInputFocus && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/"
Jerome Lelong's avatar
Jerome Lelong committed
      {
        "key": "ctrl+l ctrl+w",
        "mac": "cmd+l cmd+w",
        "when": "editorTextFocus && !editorReadonly && editorHasSelection && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/",
Jerome Lelong's avatar
Jerome Lelong committed
        "command": "latex-workshop.surround"
      },
        "command": "latex-workshop.onEnterKey",
        "key": "enter",
        "when": "config.latex-workshop.bind.enter.key && editorTextFocus && acceptSuggestionOnEnter && !suggestWidgetVisible && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && vim.active && vim.mode == 'Insert'"
      },
      {
        "command": "latex-workshop.onEnterKey",
        "key": "enter",
        "when": "config.latex-workshop.bind.enter.key && editorTextFocus && !acceptSuggestionOnEnter && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && vim.active && vim.mode == 'Insert'"
      },
      {
        "command": "latex-workshop.onEnterKey",
        "key": "enter",
        "when": "config.latex-workshop.bind.enter.key && editorTextFocus && acceptSuggestionOnEnter && !suggestWidgetVisible && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && !vim.active"
      },
      {
        "command": "latex-workshop.onEnterKey",
        "key": "enter",
        "when": "config.latex-workshop.bind.enter.key && editorTextFocus && !acceptSuggestionOnEnter && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/ && !vim.active"
      },
      {
        "command": "latex-workshop.onAltEnterKey",
        "key": "alt+enter",
        "when": "config.latex-workshop.bind.enter.key && editorTextFocus && acceptSuggestionOnEnter && !suggestWidgetVisible && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/"
        "command": "latex-workshop.onAltEnterKey",
        "key": "alt+enter",
        "when": "config.latex-workshop.bind.enter.key && editorTextFocus && !acceptSuggestionOnEnter && !editorReadonly && editorLangId =~ /^latex$|^latex-expl3$|^doctex$|^rsweave$|^jlweave$|^pweave$/"
James-Yu's avatar
James-Yu committed
    ],
Jerome Lelong's avatar
Jerome Lelong committed
      "[latex]": {
        "editor.formatOnPaste": false,
        "editor.suggestSelection": "recentlyUsedByPrefix"
      }
James-Yu's avatar
James-Yu committed
    "configuration": {
      "type": "object",
James-Yu's avatar
James-Yu committed
      "properties": {
        "latex-workshop.latex.recipes": {
          "scope": "resource",
James-Yu's avatar
James-Yu committed
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "tools": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "additionalProperties": false
          "default": [
            {
              "name": "latexmk",
              "tools": [
                "latexmk"
              ]
            },
            {
              "name": "latexmk (latexmkrc)",
              "tools": [
                "latexmk_rconly"
              ]
            },
            {
              "name": "latexmk (lualatex)",
              "tools": [
                "lualatexmk"
              ]
            },
            {
              "name": "latexmk (xelatex)",
              "tools": [
                "xelatexmk"
              ]
            },
              "name": "pdflatex -> bibtex -> pdflatex * 2",
              "tools": [
                "pdflatex",
                "bibtex",
                "pdflatex",
                "pdflatex"
              ]
Jerome Lelong's avatar
Jerome Lelong committed
            },
            {
              "name": "Compile Rnw files",
              "tools": [
                "rnw2tex",
                "latexmk"
            },
            {
              "name": "Compile Jnw files",
              "tools": [
                "jnw2tex",
                "latexmk"
              ]
Igor Koop's avatar
Igor Koop committed
            {
              "name": "Compile Pnw files",
              "tools": [
                "pnw2tex",
                "latexmk"
              ]
            },
            {
              "name": "tectonic",
              "tools": [
                "tectonic"
              ]
          "markdownDescription": "Define LaTeX compiling recipes. Each recipe in the list is an object containing its name and the names of tools to be used sequentially, which are defined in `#latex-workshop.latex.tools#`. By default, the first recipe is used to compile the project. For details, please visit https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#latex-recipes."
        "latex-workshop.latex.recipe.default": {
          "scope": "resource",
          "type": "string",
          "default": "first",
          "markdownDescription": "Define which recipe is used by `#latex-workshop.build#`. It also applies to auto build. Recipes are referred to by their names as defined in `#latex-workshop.latex.recipes#`. Note there are two particular values: \n- `first` means to use the first recipe in `#latex-workshop.latex.recipes#`;\n- `lastUsed` means to use the last run recipe."
James-Yu's avatar
James-Yu committed
        "latex-workshop.latex.tools": {
          "scope": "resource",
James-Yu's avatar
James-Yu committed
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "command": {
                "type": "string"
              },
              "args": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "env": {
                "type": "object"
              }
            ],
            "additionalProperties": false
          "default": [
            {
              "name": "latexmk",
              "command": "latexmk",
              "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-pdf",
                "-outdir=%OUTDIR%",
                "%DOC%"
              ],
              "env": {}
            },
            {
              "name": "lualatexmk",
              "command": "latexmk",
              "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-lualatex",
Tom Z?hner's avatar
Tom Z?hner committed
                "-outdir=%OUTDIR%",
                "%DOC%"
James-Yu's avatar
James-Yu committed
              "env": {}
            },
            {
              "name": "xelatexmk",
              "command": "latexmk",
              "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-xelatex",
                "-outdir=%OUTDIR%",
                "%DOC%"
              ],
              "env": {}
            {
              "name": "latexmk_rconly",
              "command": "latexmk",
              "args": [
                "%DOC%"
              ],
              "env": {}
            },
            {
              "name": "pdflatex",
              "command": "pdflatex",
              "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "%DOC%"
James-Yu's avatar
James-Yu committed
              "env": {}
            },
            {
              "name": "bibtex",
              "command": "bibtex",
              "args": [
                "%DOCFILE%"
James-Yu's avatar
James-Yu committed
              "env": {}
              "name": "rnw2tex",
Jerome Lelong's avatar
Jerome Lelong committed
              "command": "Rscript",
              "args": [
                "-e",
                "knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')"
Jerome Lelong's avatar
Jerome Lelong committed
              ],
              "env": {}
            },
            {
              "name": "jnw2tex",