-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeybindings.json
33 lines (33 loc) · 875 Bytes
/
keybindings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Place your key bindings in this file to override the defaults
// Note: these keybindings only work in the editor window, not in the console
[
{
"key": "alt+-",
"command": "type",
"when": "editorLangId =~ /r|rmd|qmd/ && editorTextFocus",
"args": {
"text": " <- "
}
},
{
"key": "ctrl+shift+m",
"command": "type",
"when": "editorLangId =~ /r|rmd|qmd/ && editorTextFocus",
"args": {
"text": " |> "
}
},
// https://stackoverflow.com/questions/71608612/how-to-add-keybindings-in-visual-studio-code-for-the-r-terminal
{
"key": "ctrl+shift+m",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": " |> " },
"when": "terminalFocus"
},
{
"key": "alt+-",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": " <- " },
"when": "terminalFocus"
},
]