RStudio keyboard shortcuts 

RStudio    

-
6 years ago
- Shortcuts
0
Ctrl + 2

Move cursor to Console

1
Ctrl + L

Clear console

0
Home

Move cursor to beginning of line

-1
End

Move cursor to end of line

1
  

Navigate command history

0
Ctrl +

Popup command history

1
Esc

Interrupt currently executing command

0
Ctrl + ↑  Shift + H

Change working directory

Advertisement

0
Ctrl + .

Goto File/Function

0
Ctrl + 1

Move cursor to Source Editor

0
Ctrl + ↑  Shift + N

New document (except on Chrome/Windows)

0
Ctrl + Alt + ↑  Shift + N

New document (Chrome only)

0
Ctrl + O

Open document

0
Ctrl + S

Save active document

1
Ctrl + W

Close active document (except on Chrome)

0
Ctrl + Alt + W

Close active document (Chrome only)

0
Ctrl + ↑  Shift + W

Close all open documents

0
Ctrl + ↑  Shift + K

Preview HTML (Markdown and HTML)

0
Ctrl + ↑  Shift + K

Knit Document (knitr)

0
Ctrl + ↑  Shift + K

Compile Notebook

0
Ctrl + ↑  Shift + K

Compile PDF (TeX and Sweave)

-1
Ctrl + Alt + I

Insert chunk (Sweave and Knitr)

0
Ctrl + ↑  Shift + R

Insert code section

0
Ctrl + ⤶ Enter

Run current line/selection

0
Alt + ⤶ Enter

Run current line/selection (retain cursor position)

0
Ctrl + ↑  Shift + P

Re-run previous region

0
Ctrl + Alt + R

Run current document

0
Ctrl + Alt + B

Run from document beginning to current line

0
Ctrl + Alt + E

Run from current line to document end

0
Ctrl + Alt + F

Run the current function definition

0
Ctrl + Alt + T

Run the current code section

0
Ctrl + Alt + P

Run previous Sweave/Rmd code

0
Ctrl + Alt + C

Run the current Sweave/Rmd chunk

0
Ctrl + Alt + N

Run the next Sweave/Rmd chunk

0
Ctrl + ↑  Shift + O

Source a file

0
Ctrl + ↑  Shift + S

Source the current document

0
Ctrl + ↑  Shift + ⤶ Enter

Source the current document (with echo)

0
Alt + L

Fold Selected

0
↑  Shift + Alt + L

Unfold Selected

0
Alt + O

Fold All

0
↑  Shift + Alt + O

Unfold All

0
↑  Shift + Alt + G

Go to line

0
↑  Shift + Alt + 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
Ctrl + F9

Navigate back

0
Ctrl + F10

Navigate forward

0
Ctrl + Alt + X

Extract function from selection

0
Ctrl + Alt + V

Extract variable from selection

0
Ctrl + I

Reindent lines

1
Ctrl + ↑  Shift + C

Comment/uncomment current line/selection

1
Ctrl + ↑  Shift + /

Reflow Comment

0
Ctrl + ↑  Shift + A

Reformat Selection

0
Ctrl + ↑  Shift + Alt + P

Show Diagnostics

0
Alt +   

Move Lines Up/Down

Advertisement

0
↑  Shift + Alt +   

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

Find and Replace

0
F3

(Windows) Find Next

0
Ctrl + G

(Linux) Find Next

0
↑  Shift + F3

(Windows) Find Previous

0
Ctrl + ↑  Shift + G

(Linux) Find Previous

0
Ctrl + F3

Use Selection for Find

0
Ctrl + ↑  Shift + J

Replace and Find

0
Ctrl + ↑  Shift + F

Find in Files

0
F7

Check Spelling

-1
Ctrl + Z

Undo

0
Ctrl + ↑  Shift + Z

Redo

0
Ctrl + X

Cut

0
Ctrl + C

Copy

0
Ctrl + V

Paste

0
Ctrl + A

Select All

0
Ctrl +   

Jump to Word

0
Ctrl + Home

Jump to Start/End

0
or Ctrl + End
1
or Ctrl +   
0
Ctrl + D

Delete Line

0
↑  Shift +

Select

0
Ctrl + ↑  Shift +   

Select Word

0
Alt + ↑  Shift +

Select to Line Start

0
Alt + ↑  Shift +

Select to Line End

0
Shift + Page Up / Down

Select Page Up/Down

0
Ctrl + ↑  Shift + Home

Select to Start/End

0
or Ctrl + ↑  Shift + End
-1
or ↑  Shift + Alt +   
0
Ctrl + Backspace

Delete Word Left

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

-1
Alt + -

Insert assignment operator

0
Ctrl + ↑  Shift + M

Insert pipe operator

0
F1

Show help for function at cursor

0
F2

Show source code for function at cursor

0
Ctrl + Alt + U

Find usages for symbol at cursor (C++)

0
Tab

Attempt completion

0
or Ctrl + 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
Ctrl + 0

Show Build

0
Ctrl + F8

Sync Editor & PDF Preview

0
Alt + ↑  Shift + K

Show Keyboard Shortcut Reference

0
Ctrl + ↑  Shift + B

Build and Reload

0
Ctrl + ↑  Shift + L

Load All (devtools)

0
Ctrl + ↑  Shift + T

Test Package (Desktop)

0
Ctrl + Alt + F7

Test Package (Web)

0
Ctrl + ↑  Shift + E

Check Package

0
Ctrl + ↑  Shift + D

Document Package

-1
↑  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 + Alt + F11

Previous plot

0
Ctrl + Alt + F12

Next plot

0
Ctrl + Alt + D

Diff active source document

0
Ctrl + Alt + M

Commit changes

0
Ctrl + ↑/↓

Scroll diff view


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

Program information

Program name: RStudio RStudio (Developer tools)

Web page: rstudio.com

Last update: 11.11.2019 20:10 UTC

How easy to press shortcuts: 79%

More information >>

Shortcut count: 145

Platform detected: Windows or Linux

Similar programs



User operations

Add RStudio to your list of favorites

Advertisement


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


 
No comments yet. Ask, or type the first one!

Latest articles