Sublime Forum

Adding <- instead of _ (snippet?)

#1

Hi all,
In R language I would like to do something like this (similar to ESS for emacs):
If I press shift± (meaning underscore _) I would like sublime to add “<-” instead.
more so, in emacs in R writing underscore also removes white spaces before the cursor.
Example:
typing: a_x+1
should result: a <- x+1
and typing: a _x+1
should also result to: a <- x+1
also typing underscore twice should print the regular underscore.

Any Idea how to make such a thing work? (I tried creating a snippet but I am no good at it)

Thanks!

0 Likes