Anabel
Anabel

Reputation: 101

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

I've tried a few things out in RStudio and must have changed some settings accidentally. Every time I execute a command now, the cursor jumps to the console. If I do not shift it back to the script, it stays in the console, which is quite annoying because I want to continue writing the script instead of working in the console. Does anybody know how I could change that?

Upvotes: 1

Views: 863

Answers (1)

szutsmester
szutsmester

Reputation: 68

I found a solution. In this page you can read about session user settings. For me focus_console_after_exec was missing, so I appended it to the end of rstudio-prefs.json.

Here is another page where you can find out where your rstudio-prefs.json is located.

Upvotes: 1

Related Questions