您的位置:首页 > 其它

Rstudio快捷键

2015-12-17 16:32 405 查看

控制台

功能Windows & LinuxMac
移动鼠标到控制台Ctrl+2Ctrl+2
控制台清屏Ctrl+LCommand+L
移动鼠标至第一行HomeCommand+Left
移动鼠标至最后一行EndCommand+Right
历史记录翻滚Up/DownUp/Down
弹出历史记录栏Ctrl+UpCommand+Up
终止目前命令EscEsc
改变工作路径Ctrl+Shift+KCtrl+Shift+K

代码区

功能Windows & LinuxMac
移动鼠标到文件搜索区Ctrl+.Ctrl+.
移动鼠标至文件编辑区Ctrl+1Ctrl+1
新文档(chrome除外)Ctrl+Shift+NCommand+Shift+N
打开文档Ctrl+OCommand+O
保存当前文档Ctrl+SCommand+S
关闭当前文档(chrome除外)Ctrl+WCommand+W
关闭当前文档(chrome)Ctrl+Shift+ZCommand+Shift+Z
关闭所有文档Ctrl+Shift+WCommand+Shift+W
预览HTMLCtrl+Shift+YCommand+Shift+Y
转换为HTMLCtrl+Shift+HCommand+Shift+H
编译PDF (TeX and Sweave)Ctrl+Shift+ICommand+Shift+I
插入块Ctrl+Alt+ICommand+Option+I
插入代码块Ctrl+Shift+RCommand+Shift+R
运行当前行Ctrl+EnterCommand+Enter
重新运行当前区Ctrl+Shift+PCommand+Shift+P
运行当前文档Ctrl+Alt+RCommand+Option+R
从开始运行至当前行Ctrl+Alt+BCommand+Option+B
从当前行运行至结尾Ctrl+Alt+ECommand+Option+E
运行当前函数定义Ctrl+Alt+FCommand+Option+F
运行当前块Ctrl+Alt+CCommand+Option+C
运行下一个块Ctrl+Alt+NCommand+Option+N
执行一个文件Ctrl+Shift+OCommand+Shift+O
执行当前文档Ctrl+Shift+SCommand+Shift+S
执行当前文档并且显示Ctrl+Shift+EnterCommand+Shift+Enter
折叠选项Alt+LCommand+Option+L
打开选项Shift+Alt+LCommand+Shift+Option+L
折叠所有Alt+0Command+Option+0
打开所有Shift+Alt+0Command+Shift+Option+0
前往行Shift+Alt+GCommand+Shift+Option+G
跳至Shift+Alt+JCommand+Shift+Option+J
换页Ctrl+Alt+DownCtrl+Option+Down
前一页Win: Ctrl+Alt+Left, Linux: Ctrl+PageUpCtrl+Option+Left
后一页Win: Ctrl+Alt+Right, Linux: Ctrl+PageDownCtrl+Option+Right
第一页Ctrl+Shift+Alt+LeftCtrl+Shift+Option+Left
最后一页Ctrl+Shift+Alt+RightCtrl+Shift+Option+Right
往回导航Ctrl+F9Command+F9
向前导航Ctrl+F10Command+F10
行缩进Ctrl+ICommand+I
从选择中抽取函数Ctrl+Shift+UCommand+Shift+U
注释/取消注释当前行Ctrl+Shift+CCommand+Shift+C
重新注释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

Editing (Console and Source)

DescriptionWindows & LinuxMac
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

Views

DescriptionWindows & LinuxMac
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

Build

DescriptionWindows & LinuxMac
Build and ReloadCtrl+Shift+BCommand+Shift+B
Load All (devtools)Ctrl+Shift+LCommand+Shift+L
Check PackageCtrl+Shift+ECommand+Shift+E

Plots

DescriptionWindows & LinuxMac
Previous plotCtrl+Shift+PageUpCommand+Shift+PageUp
Next plotCtrl+Shift+PageDownCommand+Shift+PageDown
Show manipulatorCtrl+Shift+MCommand+Shift+M

Git/SVN

DescriptionWindows & LinuxMac
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: