Is it possible to add keyboard shortcuts for R
chunks in quarto documents using vscode?
I'm trying to use shortcuts like the pipe operator %>%
(ctrl+shift+m
) and others. I thought I should do this by including something like the code below in the keybinds.json
file, but it doesn't work for me:
{
"key": "ctrl+shift+m",
"command": "type",
"when": "editorLangId == 'r' || editorTextFocus && editorLangId == 'qmd'",
"args": { "text": " %>% " }
},