Skip to content

Instantly share code, notes, and snippets.

@GillesC
Created May 4, 2018 10:50
Show Gist options
  • Save GillesC/58f031e44a51fa5e76dcd0daa6c2808e to your computer and use it in GitHub Desktop.
Save GillesC/58f031e44a51fa5e76dcd0daa6c2808e to your computer and use it in GitHub Desktop.
Keybindings and Snippets for adding snippets to VS Code in LaTex
[
{
"key":"ctrl+b",
"command":"editor.action.insertSnippet",
"args":{
"name":"Insert bold text"
}
},
{
"key":"ctrl+i",
"command":"editor.action.insertSnippet",
"args":{
"name":"Insert italic text"
}
},
{
"key":"ctrl+shift+i",
"command":"editor.action.insertSnippet",
"args":{
"name":"itemize"
}
}
]
{
"Insert bold text":{
"prefix":"bold",
"body":"\\textbf{${1:${TM_SELECTED_TEXT}}}$0",
"description":"Insert bold text"
},
"Insert italic text":{
"prefix":"italic",
"body":"\\textit{${1:${TM_SELECTED_TEXT}}}$0",
"description":"Insert italic text"
},
"itemize":{
"prefix":"itemize",
"body":[
"\\begin{itemize}",
" \\item",
"\\end{itemize}"
],
"description":"itemize"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment