RStudio (Mac) keyboard shortcuts 

RStudio (Mac)    

Zeynel -
6 years ago
- Shortcuts
1
Ctrl + L

Clear console

1
⌘ Cmd +

Move cursor to end of line

1
⌘ Cmd + ⌥ Opt + T

Run the current code section

0
⌥ Opt + -

Insert assignment operator

0
Ctrl + 2

Move cursor to Console

0
Ctrl + .

Goto File/Function

0
⌘ Cmd + ⤶ Enter

Run current line/selection

0
⌘ Cmd + ↑  Shift + F10

Restart R Session

0
⌥ Opt +   

Move Lines Up/Down

0
⌘ Cmd + ↑  Shift + M

Insert pipe operator

0
⌘ Cmd + D

Delete Line

0
⌥ Opt + ⤶ Enter

Run current line/selection (retain cursor position)

0
⌘ Cmd + ⌥ Opt + W

Close active document (Chrome only)

0
⌘ Cmd + ↑  Shift + Alt + N

New document (Chrome only)

0
⌘ Cmd +

Popup command history

0
Ctrl + F12

Next tab

0
⌘ Cmd + ↑  Shift + ⌥ Opt + L

Unfold Selected

0
⌘ Cmd + ⌥ Opt + O

Fold All

0
⌘ Cmd + ↑  Shift + K

Compile PDF (TeX and Sweave)

0
⌘ Cmd + ⌥ Opt + I

Insert chunk (Sweave and Knitr)

0
⌘ Cmd + ↑  Shift + R

Insert code section

0
⌘ Cmd + ↑  Shift + Alt + P

Show Diagnostics

0
Ctrl + Alt +

Add Cursor Above Current Cursor

-1
⌘ Cmd + ⌥ Opt + P

Run previous Sweave/Rmd code

-1
Ctrl + 0

Show Build

0
⌘ Cmd + F8

Sync Editor & PDF Preview

0
⌥ Opt + ↑  Shift + K

Show Keyboard Shortcut Reference

Advertisement

0
⌘ Cmd + ↑  Shift + B

Build and Reload

0
⌘ Cmd + ↑  Shift + L

Load All (devtools)

0
⌘ Cmd + ↑  Shift + T

Test Package (Desktop)

0
⌘ Cmd + Alt + F7

Test Package (Web)

0
⌘ Cmd + ↑  Shift + E

Check Package

0
⌘ Cmd + ↑  Shift + D

Document Package

0
↑  Shift + F9

Toggle Breakpoint

0
F10

Execute Next Line

0
↑  Shift + F4

Step Into Function

0
↑  Shift + F6

Finish Function/Loop

0
↑  Shift + F5

Continue

0
↑  Shift + F8

Stop Debugging

0
Ctrl + ⌥ Opt + D

Diff active source document

0
Ctrl + ⌥ Opt + M

Commit changes

0
Ctrl +   

Scroll diff view

0
Space

Stage/Unstage (Git)

0
⤶ Enter

Stage/Unstage and move to next (Git)

0
⌘ Cmd + Q

Quit Session (desktop only)

0
⌘ Cmd + ⌥ Opt +   

Copy Lines Up/Down

0
Ctrl + P

Jump to Matching Brace/Paren

0
Ctrl + ↑  Shift + E

Expand to Matching Brace/Paren

0
Ctrl + ↑  Shift + Alt + E

Select to Matching Brace/Paren

0
↑  Shift +

Select

0
⌥ Opt + ↑  Shift +   

Select Word

0
⌘ Cmd + ↑  Shift +

Select to Line Start

Advertisement

0
⌘ Cmd + ↑  Shift +

Select to Line End

0
Shift + Page Up / Down

Select Page Up/Down

0
⌘ Cmd + ↑  Shift +   

Select to Start/End

0
⌥ Opt + Backspace

Delete Word Left

0
or Ctrl + ⌥ Opt + Backspace
0
⌥ Opt + Del

Delete Word Right

0
Ctrl + K

Delete to Line End

0
⌥ Opt + Backspace

Delete to Line Start

0
Tab

(at beginning of line) Indent

0
↑  Shift + Tab

Outdent

0
Ctrl + U

Yank line up to cursor

0
Ctrl + K

Yank line after cursor

0
Ctrl + Y

Insert currently yanked text

0
F1

Show help for function at cursor

0
F2

Show source code for function at cursor

0
⌘ Cmd + ⌥ Opt + U

Find usages for symbol at cursor (C++)

0
Tab

Attempt completion

0
or ⌘ Cmd + Space
0
  

Navigate candidates

0
⤶ Enter

Accept selected candidate

0
or Tab
0
or
0
Esc

Dismiss completion popup

0
Ctrl + 1

Move focus to Source Editor

0
Ctrl + 2

Move focus to Console

0
Ctrl + 3

Move focus to Help

0
Ctrl + 4

Show History

0
Ctrl + 5

Show Files

0
Ctrl + 6

Show Plots

0
Ctrl + 7

Show Packages

0
Ctrl + 8

Show Environment

0
Ctrl + 9

Show Git/SVN

0
⌘ Cmd + ⌥ Opt + C

Run the current Sweave/Rmd chunk

0
⌘ Cmd + ⌥ Opt + N

Run the next Sweave/Rmd chunk

0
⌘ Cmd + ↑  Shift + O

Source a file

0
⌘ Cmd + ↑  Shift + S

Source the current document

0
⌘ Cmd + ↑  Shift + ⤶ Enter

Source the current document (with echo)

0
⌘ Cmd + ⌥ Opt + L

Fold Selected

0
⌘ Cmd + ↑  Shift + W

Close all open documents

0
⌘ Cmd + ↑  Shift + K

Preview HTML (Markdown and HTML)

0
⌘ Cmd + ↑  Shift + K

Knit Document (knitr)

0
⌘ Cmd + ↑  Shift + K

Compile Notebook

0
⌘ Cmd + ↑  Shift + P

Re-run previous region

0
⌘ Cmd + ⌥ Opt + R

Run current document

0
⌘ Cmd + ⌥ Opt + B

Run from document beginning to current line

0
⌘ Cmd + ⌥ Opt + E

Run from current line to document end

0
⌘ Cmd + ⌥ Opt + F

Run the current function definition

0
Esc

Interrupt currently executing command

0
Ctrl + ↑  Shift + H

Change working directory

0
⌘ Cmd +

Move cursor to beginning of line

0
⌘ Cmd + O

Open document

0
⌘ Cmd + S

Save active document

0
⌘ Cmd + W

Close active document (except on Chrome)

0
Ctrl + 1

Move cursor to Source Editor

0
⌘ Cmd + ↑  Shift + N

New document (except on Chrome/Windows)

0
  

Navigate command history

0
Ctrl + Alt +

Add Cursor Below Current Cursor

0
Ctrl + Alt + ↑  Shift +

Move Active Cursor Up

0
Ctrl + Alt + ↑  Shift +

Move Active Cursor Down

0
⌘ Cmd + F

Find and Replace

0
⌘ Cmd + G

Find Next

0
⌘ Cmd + ↑  Shift + G

Find Previous

0
⌘ Cmd + E

Use Selection for Find

0
⌘ Cmd + ↑  Shift + J

Replace and Find

0
⌘ Cmd + ↑  Shift + F

Find in Files

0
F7

Check Spelling


Share this page on:
Is this page helpful?
0 0

Program information

Program name: RStudio (Mac) RStudio (Mac) (Developer tools)

Web page: rstudio.com

Last update: 11.11.2019 20:10 UTC

How easy to press shortcuts: 78%

More information >>

Shortcut count: 146

Platform detected: Windows and macOS mixed

Similar programs



User operations

Add RStudio (Mac) to your list of favorites

Advertisement


What is your favorite RStudio (Mac) hotkey? Do you have any useful tips for it? Let other users know below.


Only registered users can post links.
 
No comments yet. Ask, or type the first one!

Latest articles