'VS Code when clause context (for keyboard shortcuts) for LaTeX math mode
In VS Code I can define keyboard shortcuts to only work in certain conditions:
https://code.visualstudio.com/api/references/when-clause-contexts
So i can add different variables, e.g. this keyboard shortcut would only work when writing latex documents and the text is focused:
{
"key": "alt+.",
"command": "editor.action.insertSnippet",
"when": "editorLangId == latex && editorTextFocus",
"args": {
"snippet": "\\cdot $0"
}
},
}
Is there any clause context (like "editorTextFocus") that would tell me whether I'm in LaTeX math mode or not that comes with any extension or something (I use the LaTeX Workshop extension)? I haven't found anything online. Or can I define something like this myself? If yes, does anyone know a good resource to find out how to do so?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
