New to Sublime Text.
Just want to set “Ctrl + Shift + m” to quick input %>% in R, like RStudio.
Key binging seems only to take command. It is definitely not a sort of snippet.
Any help, Thanks
New to Sublime Text.
Just want to set “Ctrl + Shift + m” to quick input %>% in R, like RStudio.
Key binging seems only to take command. It is definitely not a sort of snippet.
Any help, Thanks
An example key binding that does that is this:
{ "keys": ["ctrl+shift+m"], "command": "insert",
"args": { "characters": "%>%" },
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.r" },
],
},
The characters
argument to the insert
command indicates what to insert; the context
makes the binding only active while the current file is an R file.