Score:0

Using Sublime Text to send code to terminal

in flag

I have just recently switched from Mac OS to Ubuntu and I am missing a specific feature (not Mac OS related) that I couldn't find anywhere.

I want to use Sublime Text 3 as a general code editor and use Ctrl+Enter to send code to terminal depending on the code used (e.g. if bash shell, send it to shell, if R, send it to R, etc.).

I have been trying the same route I used on Mac OS (with the packages R-Box, SublimeREPL and SendCode) but to no avail. I have found some tutorial using Terminus (https://bishwarup-paul.medium.com/a-guide-to-using-r-in-sublime-text-27f78b33f872) but this does not exactly fits my needs (the terminus window has to be configured each time and I can't seem to separate it from the current Sublime window).

vanadium avatar
cn flag
The tool `sendcode` you used with Sublime Text should also work on Linux. See the github page https://github.com/randy3k/SendCode
Thomas Guillerme avatar
in flag
Thanks, I was missing `xdotool`.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.