Keyboard shortcut to split screen in half with source pane on left and console pane

Viewed 559

Is there a keyboard shortcut that splits the RStudio window in half with the source on the left and console on right (and hides all other panes) as per screenshot below?

enter image description here

2 Answers

The following might do the trick:

Set up your own shortcut for Maximize Console

  1. Go to Tools -> Modify Keyboard Shortcuts
  2. Filter: Search for Maximize Console
  3. Under Shortcut add your own shortcut such as Ctrl C M for Console Maximize

Keep left side for Source ONLY (if you think that it OK).

  1. Go to Preferences (Command ,)
  2. Go to Pane Layout and deselect all in the lower-left corner

The History panel that you had to deselct from the Source side you can add to the lower-right panel; and then open it using control 4. And you can do the same for the Help panel, which you open using Control 3

There is no shortcut that will arrange the panels properly. However, you can save their layout! Whenever you need it, you can load any panel layout. The layout of the panels is saved in the rstudio-prefs.json file which is located (in the case of Windows) in C:\Users\UserName\ AppData\Roaming\RStudio where, of course, UserName is the name of the current user. You only need to save this file once when RStudio has your favorite panel layout and then you copy it where you want to quickly recall it.

I checked it and it works for me without any problems. Unfortunately, changing the layout of the panels will only work after restarting RStudio.

Related