R language Rstudio shortcut key summaryOne, the control desk
features Windows & Linux Mac
- Move mouse to console ctrl+2ctrl+2
- Move to mouse command edit ctrl+1 ctrl+1
- Console Clear Screen Ctrl+lcommand+l
- Move the mouse to the first line Homecommand+left
- Move the mouse to the last line Endcommand+right
- History Roll Up/downup/down
- Pop-up History bar Ctrl+upcommand+up
- Terminate the current order Escesc
- Change the work path ctrl+shift+kctrl+shift+k
second, code area
Features Windows & Linux Mac
- Move the mouse to the file search area Ctrl +. CTRL +.
- Move the mouse to the file editing area ctrl+1ctrl+1
- New documents (except Chrome) ctrl+shift+ncommand+shift+n
- Open Document Ctrl+ocommand+o
- Save current document Ctrl+scommand+s
- Close the current document (except Chrome) ctrl+wcommand+w
- Close the current document (Chrome) ctrl+shift+zcommand+shift+z
- Close all Documents Ctrl+shift+wcommand+shift+w
- Preview Htmlctrl+shift+ycommand+shift+y
- Convert to Htmlctrl+shift+hcommand+shift+h
- Compiling PDF (TeX and Sweave) ctrl+shift+icommand+shift+i
- Insert Block Ctrl+alt+icommand+option+i
- Inserting a code block CTRL+SHIFT+RCOMMAND+SHIFT+R
- Run the current line Ctrl+entercommand+enter
- Re-run the current zone ctrl+shift+pcommand+shift+p
- Run the current document Ctrl+alt+rcommand+option+r
- Run from start to current line ctrl+alt+bcommand+option+b
- Run from current line to end Ctrl+alt+ecommand+option+e
- Run the current function definition Ctrl+alt+fcommand+option+f
- Run Current block Ctrl+alt+ccommand+option+c
- Run the next block ctrl+alt+ncommand+option+n
- Execute a file Ctrl+shift+ocommand+shift+o
- Executes the current document Ctrl+shift+scommand+shift+s
- Executes the current document and displays Ctrl+shift+entercommand+shift+enter
- Collapse Options Alt+lcommand+option+l
- Open option Shift+alt+lcommand+shift+option+l
- Collapse All alt+0command+option+0
- Open All Shift+alt+0command+shift+option+0
- Go to Row Shift+alt+gcommand+shift+option+g
- Skip to Shift+alt+jcommand+shift+option+j
- Change Page Ctrl+alt+downctrl+option+down
- Previous page win:ctrl+alt+left, Linux:ctrl+pageupctrl+option+left
- Next page win:ctrl+alt+right, Linux:ctrl+pagedownctrl+option+right
- First page Ctrl+shift+alt+leftctrl+shift+option+left
- Last page Ctrl+shift+alt+rightctrl+shift+option+right
- Navigate Back Ctrl+f9command+f9
- Navigate Forward Ctrl+f10command+f10
- Line Indent Ctrl+icommand+i
- Extracting the function ctrl+shift+ucommand+shift+u from the selection
- Comment/Uncomment the current line Ctrl+shift+ccommand+shift+c
- Re-annotate ctrl+shift+/command+shift+/
- Transpose Lettersctrl+t
- Move Lines Up/downalt+up/downoption+up/down
- Copy Lines Up/downctrl+alt+up/downcommand+option+up/down
- Jump to Matching brace/parenctrl+pctrl+p
- Find and Replacectrl+fcommand+f
- Find Nextwin:f3, Linux:ctrl+gcommand+g
- Find Previouswin:shift+f3, Linux:ctrl+shift+gcommand+shift+g
- Replace and findctrl+=command+=
- Find in Filesctrl+shift+fcommand+shift+f
- Check Spellingf7f7
iii.Editing (Console and Source)
Description Windows & Linux Mac
- Undoctrl+zcommand+z
- Redoctrl+shift+zcommand+shift+z
- Cutctrl+xcommand+x
- Copyctrl+ccommand+c
- Pastectrl+vcommand+v
- Select Allctrl+acommand+a
- Jump to Wordctrl+left/rightoption+left/right
- Jump to Start/endctrl+home/end or Ctrl+up/downcommand+home/end or Command+up/down
- Delete Linectrl+dcommand+d
- Selectshift+[arrow]shift+[arrow]
- Select Wordctrl+shift+left/rightoption+shift+left/right
- Select to line startshift+homecommand+shift+left or Shift+home
- Select to line endshift+endcommand+shift+right or shift+end
- Select Page Up/downshift+pageup/pagedownshift+pageup/down
- Select to Start/endctrl+shift+home/end or Shift+alt+up/downcommand+shift+up/down
- Delete Word Leftctrl+backspaceoption+backspace or Ctrl+option+backspace
- Delete Word Rightoption+delete
- Delete To Line Endctrl+k
- Delete To Line Startoption+backspace
- Indenttab (at beginning of line) Tab (at beginning of line)
- Outdentshift+tabshift+tab
- Yank line up to Cursorctrl+uctrl+u
- Yank Line after Cursorctrl+kctrl+k
- Insert currently yanked Textctrl+yctrl+y
- Insert Assignment operatoralt+-option+-
- Show Help for function at CURSORF1F1
- Show source code for function at CURSORF2F2
- Completions (Console and Source)
- Descriptionwindows & Linuxmac
- Attempt Completiontab or Ctrl+spacetab or command+space
- Navigate Candidatesup/downup/down
- Accept selected Candidateenter, tab, or RightEnter, tab, or right
- Dismiss Completion Popupescesc
Iv. views
Description Windows & Linux Mac
- Goto file/functionctrl+. CTRL +.
- Move cursor to Source editorctrl+1ctrl+1
- Move cursor to Consolectrl+2ctrl+2
- Move Focus to Helpctrl+3ctrl+3
- Show historyctrl+4ctrl+4
- Show filesctrl+5ctrl+5
- Show plotsctrl+6ctrl+6
- Show packagesctrl+7ctrl+7
- Show workspacectrl+8ctrl+8
- Show git/svnctrl+9ctrl+9
- Show buildctrl+0ctrl+0
- Sync Editor and PDF Previewctrl+f8command+f8
Five, Build
Description Windows & Linux Mac
- Build and Reloadctrl+shift+bcommand+shift+b
- Load All (Devtools) ctrl+shift+lcommand+shift+l
- Check packagectrl+shift+ecommand+shift+e
Liu, plots
Description Windows & Linux Mac
- Previous Plotctrl+shift+pageupcommand+shift+pageup
- Next Plotctrl+shift+pagedowncommand+shift+pagedown
- Show manipulatorctrl+shift+mcommand+shift+m
Seven, Git/svn
Description Windows & Linux Mac
- Diff Active Source Documentctrl+shift+dcommand+shift+d
- Commit changesctrl+shift+mcommand+shift+m
- Scroll diff Viewctrl+up/downctrl+up/down
- Stage/unstage (Git) Spacebarspacebar
- Stage/unstage and Move next (Git) enterenter
R language Rstudio shortcut key summary