Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

r

rstudio

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

like image 732
luciano Avatar asked Dec 07 '21 10:12

luciano


People also ask

How do I move windows half screen?

Split Screen with Keyboard Shortcuts in Windows Windows also gives us keyboard shortcuts to split the screen. At any time you can press Win + Left/Right Arrow to move the active window to the left or right.

How do you split the screen on a Dell keyboard?

Windows key + SHIFT + . Moves the split to the LEFT if you are in split screen mode or cycles (Docks current app to left, right, or center of screen.) the open applications shiftingg their position in split screen.

How do I move a window to the left?

Here are two keyboard shortcuts to move window: Win + Left Arrow: snap the window to the left.

How to split a screen in half on Windows 10?

Now let’s start to divide the screen into two, followed by three and four divisions. This is very simple. Just hold and keep dragging the window on either side till you see the split indication: Subsequently, you can do this for the other window to split the display in half.

How do I select the second half of my screen?

When the window you want to select for the second half of your screen is framed, confirm the selection by pressing the Enter key. Once you’ve placed the first window in a quarter of your screen, the miniature view disappears.

How to divide the screen into four parts?

Let’s do it the last time and divide the screen into four parts by dragging each one to a corner: Alternatively, we can do this with windows shortcuts as well. Please remember to avoid maximizing any window.

How much screen space do split windows take?

When two windows are split, one will occupy the left 50% of the screen, and the other will take the right 50%. If there are three windows, one window on either left or right side will occupy 50% screen space and the other two will each take the top and bottom of the remaining area.


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

like image 179
Gorp Avatar answered Oct 26 '22 22:10

Gorp


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.

like image 29
Marek Fiołka Avatar answered Oct 27 '22 00:10

Marek Fiołka