I have a keyboard shortcut to use ALT+-
to insert ->
in R files, and it works.
{
"key": "alt+-",
"command": "type",
"when": "editorLangId == r || editorLangId == rmd || editorLangId == quarto && editorTextFocus",
"args": {
"text": " <- "
}
}
But it does not (unsurprisingly) work in the R / radian terminal because of the when
condition.
How can I make it also work in the R / radian terminal?