Skip to content

Change keyboard shortcutΒΆ

To run code in RStudio on the HPC, you need to send it to the terminal. You may find it useful to set up an easy keyboard shortcut to do this, particularly if you use a Mac.

To do this you will need to:

  1. Navigate to the keyboard shortcut menu. Click on Tools > Modify Keyboard Shortcut.

  2. Find the shortcut you need. Use filter search box to type "send" to help you filter through all the various shortcuts. This should narrow down the options.

  3. Select "Send Selection to Terminal"

  4. Set to Ctrl+Cmd+Enter, or any preferred setting. Look out for keyboard shortcuts that already do other things, for example Ctrl+Enter or Cmd+Enter that are already used to sending your selection or line to the R console.

  5. Click on Apply, and close the screen by clicking on Cancel.

Go back to section 1: Steps to enable the Terminal in Rstudio

Go to section 3: Logging into the HPC and setting up your environment.


Last update: November 27, 2023