Home Download Buy Blog Forum Support

adding <- instead of _ (snippet?)

adding <- instead of _ (snippet?)

Postby Submarine on Sun Apr 06, 2014 6:30 pm

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!
Submarine
 
Posts: 1
Joined: Sun Apr 06, 2014 6:25 pm

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 19 guests