在 vscode 中创建自定义键盘映射

Create custom keymap in vscode

我想在 vscode 中创建一个自定义键映射,这将帮助我在使用 LATEX 时更快地编写特殊文本。

我的意思的例子:

我在 Latex 中使用 \color{choosen_color}{text} 命令。
我写了“some text”,我想在其中对“text”这个词使用上面的命令。
我希望如果我 select "text" 然后按 Ctrl+Alt+c,vscode 自动写入 \color{}{text} 并放置光标,而不是必须手动编写在第一个括号之间。

知道怎么做吗?

好的,感谢@rioV8,我弄明白了。

我要找的是 VsCode 键盘映射片段。

更多信息请点击此处: https://code.visualstudio.com/updates/v1_9#_insert-snippets Visual Studio Code snippet as keyboard shortcut key