How to pass a line to the console in sublime text 2 editor

后端 未结 3 1385
南旧
南旧 2021-02-04 08:46

I use RStudio for working with R programming language and find the ctrl+enter shortcut to send a line to the console extremely useful in troubleshooting my work.

3条回答
  •  孤独总比滥情好
    2021-02-04 09:02

    In addition to setting up your own key bindings, you can simply install Enhanced-R:

    In Sublime:

    • Cmd + Shift + P (to bring up the command palette)
    • type "Install Package"
    • Navigate to Enhanced-R

    If you are using Sublime for mostly just R, then you can set the default syntax for the whole app. Or you can change it per file (Cmd + Shift + P again, then start typing Syntax Enhanced R)

    Then, like you are used to in RStudio, you simply hit Cmd + enter to ship the code to the Console or R.app etc

提交回复
热议问题