RStudio (Mac) keyboard shortcuts

RStudio (Mac)  

Zeynel Abidin Öztürk -
3 years ago
- Shortcuts
0
Ctrl + 2

Move cursor to Console

0
Ctrl + L

Clear console

0
⌘ Cmd +

Move cursor to beginning of line

0
⌘ Cmd +

Move cursor to end of line

0
↑  ↓

Navigate command history

0
⌘ Cmd +

Popup command history

0
Esc

Interrupt currently executing command

0
Ctrl + ↑   Shift + H

Change working directory

0
Ctrl + .

Goto File/Function

0
Ctrl + 1

Move cursor to Source Editor

0
⌘ Cmd + ↑   Shift + N

New document (except on Chrome/Windows)

0
⌘ Cmd + ↑   Shift + Alt + N

New document (Chrome only)

0
⌘ Cmd + O

Open document

0
⌘ Cmd + S

Save active document

0
⌘ Cmd + W

Close active document (except on Chrome)

0
⌘ Cmd + ⌥ Option + W

Close active document (Chrome only)

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 + K

Compile PDF (TeX and Sweave)

0
⌘ Cmd + ⌥ Option + I

Insert chunk (Sweave and Knitr)

0
⌘ Cmd + ↑   Shift + R

Insert code section

0
⌘ Cmd + ⤶ Enter

Run current line/selection

0
⌥ Option + ⤶ Enter

Run current line/selection (retain cursor position)

0
⌘ Cmd + ↑   Shift + P

Re-run previous region

0
⌘ Cmd + ⌥ Option + R

Run current document

0
⌘ Cmd + ⌥ Option + B

Run from document beginning to current line

0
⌘ Cmd + ⌥ Option + E

Run from current line to document end

0
⌘ Cmd + ⌥ Option + F

Run the current function definition

1
⌘ Cmd + ⌥ Option + T

Run the current code section

0
⌘ Cmd + ⌥ Option + P

Run previous Sweave/Rmd code

0
⌘ Cmd + ⌥ Option + C

Run the current Sweave/Rmd chunk

0
⌘ Cmd + ⌥ Option + 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 + ⌥ Option + L

Fold Selected

0
⌘ Cmd + ↑   Shift + ⌥ Option + L

Unfold Selected

0
⌘ Cmd + ⌥ Option + O

Fold All

0
⌘ Cmd + ↑   Shift + ⌥ Option + O

Unfold All

0
⌘ Cmd + ↑   Shift + ⌥ Option + G

Go to line

0
⌘ Cmd + ↑   Shift + ⌥ Option + J

Jump to

0
Ctrl + ↑   Shift + .

Switch to tab

0
Ctrl + F11

Previous tab

0
Ctrl + F12

Next tab

0
Ctrl + ↑   Shift + F11

First tab

0
Ctrl + ↑   Shift + F12

Last tab

0
⌘ Cmd + F9

Navigate back

0
⌘ Cmd + F10

Navigate forward

0
⌘ Cmd + ⌥ Option + X

Extract function from selection

0
⌘ Cmd + ⌥ Option + V

Extract variable from selection

0
⌘ Cmd + I

Reindent lines

0
⌘ Cmd + ↑   Shift + C

Comment/uncomment current line/selection

0
⌘ Cmd + ↑   Shift + /

Reflow Comment

0
⌘ Cmd + ↑   Shift + A

Reformat Selection

0
⌘ Cmd + ↑   Shift + Alt + P

Show Diagnostics

0
Ctrl + T

Transpose Letters

0
⌥ Option + ↑  ↓

Move Lines Up/Down

0
⌘ Cmd + ⌥ Option + ↑  ↓

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
Ctrl + Alt +

Add Cursor Above Current Cursor

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

0
⌘ Cmd + Z

Undo

0
⌘ Cmd + ↑   Shift + Z

Redo

0
⌘ Cmd + X

Cut

0
⌘ Cmd + C

Copy

0
⌘ Cmd + V

Paste

0
⌘ Cmd + A

Select All

0
⌥ Option + ←  →

Jump to Word

0
⌘ Cmd + Home

Jump to Start/End

0
or ⌘ Cmd + End
0
or ⌘ Cmd + ↑  ↓
0
⌘ Cmd + D

Delete Line

0
↑   Shift + ← ↑ → ↓

Select

0
⌥ Option + ↑   Shift + ←  →

Select Word

0
⌘ Cmd + ↑   Shift +

Select to Line Start

0
⌘ Cmd + ↑   Shift +

Select to Line End

0
Shift + Page Up / Down

Select Page Up/Down

0
⌘ Cmd + ↑   Shift + ↑  ↓

Select to Start/End

0
⌥ Option + Backspace

Delete Word Left

0
or Ctrl + ⌥ Option + Backspace
0
⌥ Option + Del

Delete Word Right

0
Ctrl + K

Delete to Line End

0
⌥ Option + 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
⌥ Option + -

Insert assignment operator

0
⌘ Cmd + ↑   Shift + M

Insert pipe operator

0
F1

Show help for function at cursor

0
F2

Show source code for function at cursor

0
⌘ Cmd + ⌥ Option + 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

-1
Ctrl + 0

Show Build

0
⌘ Cmd + F8

Sync Editor & PDF Preview

0
⌥ Option + ↑   Shift + K

Show Keyboard Shortcut Reference

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 + ⌥ Option + D

Diff active source document

0
Ctrl + ⌥ Option + 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 + ↑   Shift + F10

Restart R Session


Share this page on:

Program information

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

RStudio is an integrated development environment (IDE) for R programming language. R is used for graphics and statistical calculations. Distributed as free and open-source, RStudio was first released on February 2011.

Web page: rstudio.com

Last update: 11/11/2019 8:10 PM UTC

How easy to press shortcuts: 78%

More information >>

Shortcut count: 146

Platform detected: Windows and macOS mixed

Similar programs



Advertisement

Join our mailing list!

Your email is kept private and we don't spam.