R Studio:ctrl+shift+enter 运行整个代码而不是只运行选定的行

R Studio: ctrl+shift+enter runs the entire code instead of the selected lines only

我正在使用 R Studio,我遇到了一个问题:ctrl+shift+enter 是 运行 整个代码,而不是仅选定的行。我总是可以使用 "Run",但我习惯于 ctrl+shift+enter...有人知道如何解决这个问题吗?

文档here

Run current line/selection Ctrl+Enter
Run current line/selection (retain cursor position) Alt+Enter

要 运行 只有您选择的内容,请使用 ctrl+enter(在 mac 上使用 cmd+enter)。下班。

查看以下 link 备忘单,其中包含许多 RStudio 命令。

https://www.rstudio.com/resources/cheatsheets/