Created
February 1, 2022 03:56
-
-
Save jimjam-slam/8cfbd60237a833bcd9b6a26763ed1172 to your computer and use it in GitHub Desktop.
Keybindings for writing R in VSCode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// 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