'Create custom keymap in vscode

I want to create a custom keymapping in vscode that would help me write special text faster when writing in LATEX.

Example of what I mean :

I'm using the \color{choosen_color}{text} command in latex.
I have written "some text" and within that I want to use the above command over the "text" word.
Instead of having to write it manually, I want that if I select "text" and then press Ctrl+Alt+c, vscode automatically writes \color{}{text} and place the cursor between the first brackets.

Any idea how to do it ?



Solution 1:[1]

Ok, so thanks to @rioV8 I figured it out.

What I was looking for is the VsCode Keymapping snippets.

More about it here : https://code.visualstudio.com/updates/v1_9#_insert-snippets Visual Studio Code snippet as keyboard shortcut key

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 infrahinium