简体   繁体   English

键盘快捷键,用于将RStudio中的选择发送到终端

[英]keyboard shortcut to send selection in RStudio to Terminal

I am looking for a keyboard shortcut to send to the terminal rather than the console (as labelled in RStudio). 我正在寻找要发送到终端而不是控制台 (如RStudio中所示)的键盘快捷键。

For example, I want to run $ Rscript hello_world.R 例如,我要运行$ Rscript hello_world.R

Ctrl+Enter allows me to run source("hello_world.R") from the console , but I'm working with blocks of bash and python in an Rmd document, and I want to be able to run them without firing up a separate source code editor. Ctrl+Enter允许我从控制台运行source("hello_world.R") ,但是我正在处理Rmd文档中的bash和python块,我希望能够在不启动单独源的情况下运行它们代码编辑器。

尝试ctrl+alt+enter我认为这就是您要寻找的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM