Skip to content

Instantly share code, notes, and snippets.

@jimjam-slam
Created February 1, 2022 03:56
Show Gist options
  • Save jimjam-slam/8cfbd60237a833bcd9b6a26763ed1172 to your computer and use it in GitHub Desktop.
Save jimjam-slam/8cfbd60237a833bcd9b6a26763ed1172 to your computer and use it in GitHub Desktop.
Keybindings for writing R in VSCode
[
// open r help
{
"key": "shift+cmd+h",
"command": "r.helpPanel.openForSelection"
},
// insert a magrittr pipe %>% in editor or terminal
{
"key": "shift+cmd+m",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "%>%"
}
},
{
"key": "shift+cmd+m",
"command": "workbench.action.terminal.sendSequence",
"when": "terminalFocus",
"args": {
"text": "%>%"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment