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

后端 未结 3 1390
南旧
南旧 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 08:59

    Sending raw R code to SublimeREPL does work now:

    1. Bring up the Cmd/Ctrl+Shift+P menu
    2. Select R Application Switch
    3. Select SublimeREPL

    When you have SublimeREPL active, you'll be able to send raw R to it with Cmd/Ctrl+Enter.

    Note that by default, SublimeREPL won't display the code that gets sent in; it'll just show you the output. If you want to also see the code, you can change your user settings:

    1. Navigate to Preferences -> Package settings -> SublimeREPL -> Settings - User
    2. Turn on the show_transferred_text setting.

    For example, if you don't have any other settings, your settings should look like this:

    {
        "show_transferred_text": true
    }
    

提交回复
热议问题