admin 发表于 2014-9-7 10:48:18

RStudio快捷键 中文对照


http://r.icodeu.com/portal.php?mod=view&aid=24
Console
DescriptionWindows & LinuxMac
将光标定位到控制台Ctrl+2Ctrl+2
清空控制台Ctrl+LCommand+L
将光标定位到行首HomeCommand+Left
将光标定位到行末EndCommand+Right
在历史命令中导航Up/DownUp/Down
弹出历史命令框Ctrl+UpCommand+Up
中断当前命令的执行EscEsc
改变工作目录Ctrl+Shift+KCtrl+Shift+K

Source
DescriptionWindows & LinuxMac
跳转到文件/函数Ctrl+.Ctrl+.
光标定位到源码编辑器Ctrl+1Ctrl+1
新建一个文件(在Chrome/Windows上例外)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
在HTML里面预览Ctrl+Shift+YCommand+Shift+Y
Knit to 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
切换tabCtrl+Alt+DownCtrl+Option+Down
切换到前一个tabWin: Ctrl+Alt+LeftLinux: Ctrl+PageUpCtrl+Option+Left
切换到下一个tabWin: Ctrl+Alt+RightLinux: Ctrl+PageDownCtrl+Option+Right
切换到第一个tabCtrl+Shift+Alt+LeftCtrl+Shift+Option+Left
切换到最后一个tabCtrl+Shift+Alt+RightCtrl+Shift+Option+Right
向前切换(类似浏览器→)Ctrl+F9Command+F9
向后导航(类似浏览器←)Ctrl+F10Command+F10
Reindent linesCtrl+ICommand+I
从选中的代码中提取函数Ctrl+Shift+UCommand+Shift+U
注释/取消注释 当前行/选中区域Ctrl+Shift+CCommand+Shift+C
Reflow commentCtrl+Shift+/Command+Shift+/
Transpose LettersCtrl+T
向上/向下移动一行Alt+Up/DownOption+Up/Down
Copy Lines Up/DownCtrl+Alt+Up/DownCommand+Option+Up/Down
Jump to Matching Brace/ParenCtrl+PCtrl+P
查找并替换Ctrl+FCommand+F
查找下一个Win: F3, Linux: Ctrl+GCommand+G
查找上一个Win: Shift+F3Linux: Ctrl+Shift+GCommand+Shift+G
替换并查找Ctrl+=Command+=
在文件中茶轴啊Ctrl+Shift+FCommand+Shift+F
拼写检查F7F7

Editing (Console and Source)
DescriptionWindows & LinuxMac
撤销Ctrl+ZCommand+Z
重复上次操作Ctrl+Shift+ZCommand+Shift+Z
剪切Ctrl+XCommand+X
复制Ctrl+CCommand+C
粘贴Ctrl+VCommand+V
全选Ctrl+ACommand+A
跳转到单词Ctrl+Left/RightOption+Left/Right
跳转到开头/结尾Ctrl+Home/End or Ctrl+Up/DownCommand+Home/End or Command+Up/Down
删除行Ctrl+DCommand+D
选择Shift+Shift+
选择一个词Ctrl+Shift+Left/RightOption+Shift+Left/Right
选中光标处到行首的内容Shift+HomeCommand+Shift+Left or Shift+Home
选中光标处到行末的内容Shift+EndCommand+Shift+Right or Shift+End
Select Page Up/DownShift+PageUp/PageDownShift+PageUp/Down
选中到文件开始/末尾的内容Ctrl+Shift+Home/End or Shift+Alt+Up/DownCommand+Shift+Up/Down
删除左边的单词Ctrl+BackspaceOption+Backspace or Ctrl+Option+Backspace
删除右边的单词Option+Delete
删除光标到行末的内容Ctrl+K
删除光标到行首的内容Option+Backspace
缩进Tab (at beginning of line)Tab (at beginning of line)
取消缩进Shift+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+-
查看光标处的函数帮助F1F1
查看光标处的函数代码F2F2

Completions (Console and Source)
DescriptionWindows & LinuxMac
自动完成Tab or Ctrl+SpaceTab or Command+Space
在历史命令中导航Up/DownUp/Down
选定命令Enter, Tab, or RightEnter, Tab, or Right
离开弹出的自动完成提示框EscEsc

Views
DescriptionWindows & LinuxMac
跳转到文件/函数Ctrl+.Ctrl+.
将光标定位到代码编辑器Ctrl+1Ctrl+1
将光标定位到控制台Ctrl+2Ctrl+2
将焦点定位到帮助Ctrl+3Ctrl+3
显示历史Ctrl+4Ctrl+4
显示文件Ctrl+5Ctrl+5
显示图像Ctrl+6Ctrl+6
显示包Ctrl+7Ctrl+7
显示工作空间Ctrl+8Ctrl+8
显示Git/SVNCtrl+9Ctrl+9
显示BuildCtrl+0Ctrl+0
同步编辑器和PDF预览Ctrl+F8Command+F8

Build
DescriptionWindows & LinuxMac
编译和重载Ctrl+Shift+BCommand+Shift+B
加载所有(devtools)Ctrl+Shift+LCommand+Shift+L
检查包Ctrl+Shift+ECommand+Shift+E

Plots
DescriptionWindows & LinuxMac
上一个图像Ctrl+Shift+PageUpCommand+Shift+PageUp
下一个图像Ctrl+Shift+PageDownCommand+Shift+PageDown
显示操作者Ctrl+Shift+MCommand+Shift+M

页: [1]
查看完整版本: RStudio快捷键 中文对照