RStudio:执行命令后,光标跳转到控制台并停留在那里

RStudio: After the execution of a command, the cursor jumps to the console and stays there

我在 RStudio 中尝试了一些东西,一定是不小心更改了一些设置。 我现在每执行一个命令,光标就跳转到控制台。如果我不将它移回脚本,它就会留在控制台中,这很烦人,因为我想继续编写脚本而不是在控制台中工作。有谁知道我该如何改变它?

我找到了解决办法。在 this page 中,您可以阅读有关会话用户设置的信息。对我来说 focus_console_after_exec 丢失了,所以我将它附加到 rstudio-prefs.json 的末尾。

这里是 another page,您可以在这里找到您的 rstudio-prefs.json 所在的位置。