Home > database >  Create custom keymap in vscode
Create custom keymap in vscode

Time:05-01

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 ?

CodePudding user response:

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

  • Related