R语⾔客户端RStudio快捷键⼤全Console
Description Windows & Linux Mac
将光标定位到控制台Ctrl+2Ctrl+2
清空控制台Ctrl+L Command+L
将光标定位到⾏⾸Home Command+Left
将光标定位到⾏末End Command+Right
在历史命令中导航Up/Down Up/Down
弹出历史命令框Ctrl+Up Command+Up
中断当前命令的执⾏Esc Esc
改变⼯作⽬录Ctrl+Shift+K Ctrl+Shift+K
Source
Description Windows & Linux Mac
跳转到⽂件/函数Ctrl+.Ctrl+.
光标定位到源码编辑器Ctrl+1Ctrl+1
新建⼀个⽂件(在Chrome/Windows上例
外)
Ctrl+Shift+N Command+Shift+N
打开⽂件Ctrl+O Command+O
保存当前⽂件Ctrl+S Command+S
关闭当前⽂件(在Chrome上例外)Ctrl+W Command+W
关闭当前⽂件(仅适⽤于Chrome)Ctrl+Shift+Z Command+Shift+Z
关闭所有打开的⽂件Ctrl+Shift+W Command+Shift+W
在HTML⾥⾯预览Ctrl+Shift+Y Command+Shift+Y
Knit to HTML Ctrl+Shift+H Command+Shift+H
编译PDF (TeX and Sweave)Ctrl+Shift+I Command+Shift+I
插⼊块Ctrl+Alt+I Command+Option+I
插⼊代码段Ctrl+Shift+R Command+Shift+R
运⾏当前/被选中的代码Ctrl+Enter Command+Enter
再次运⾏以前区域Ctrl+Shift+P Command+Shift+P
运⾏当前⽂件Ctrl+Alt+R Command+Option+R
运⾏⽂件中从开头到光标所在处的代码Ctrl+Alt+B Command+Option+B
运⾏⽂件中从光标所在处到⽂件末尾的
代码
Ctrl+Alt+E Command+Option+E
运⾏当前函数定义代码Ctrl+Alt+F Command+Option+F
运⾏当前代码块Ctrl+Alt+C Command+Option+C
运⾏下⼀个代码块Ctrl+Alt+N Command+Option+N
执⾏⼀个外部⽂件中的代码Ctrl+Shift+O Command+Shift+O
执⾏当前⽂件中的代码Ctrl+Shift+S Command+Shift+S
执⾏当前⽂件中的代码(并输出)Ctrl+Shift+Enter Command+Shift+Enter
折叠选中代码Alt+L Command+Option+L
打开选中代码Shift+Alt+L Command+Shift+Option+L 折叠所有代码Alt+0Command+Option+0
打开所有代码Shift+Alt+0Command+Shift+Option+0跳转到指定⾏Shift+Alt+G Command+Shift+Option+G 跳转到Shift+Alt+J Command+Shift+Option+J 切换tab Ctrl+Alt+Down Ctrl+Option+Down
切换到前⼀个tab Win: Ctrl+Alt+Left, Linux: Ctrl+PageUp Ctrl+Option+Left
切换到下⼀个tab Win: Ctrl+Alt+Right, Linux:
Ctrl+PageDown
Ctrl+Option+Right
切换到第⼀个tab Ctrl+Shift+Alt+Left Ctrl+Shift+Option+Left
切换到最后⼀个tab Ctrl+Shift+Alt+Right Ctrl+Shift+Option+Right
向前切换(类似浏览器→)Ctrl+F9Command+F9
向后导航(类似浏览器←)Ctrl+F10Command+F10
Reindent lines Ctrl+I Command+I
从选中的代码中提取函数Ctrl+Shift+U Command+Shift+U
注释/取消注释当前⾏/选中区域Ctrl+Shift+C Command+Shift+C
Reflow comment Ctrl+Shift+/Command+Shift+/ Transpose Letters Ctrl+T
向上/向下移动⼀⾏Alt+Up/Down Option+Up/Down
Copy Lines Up/Down Ctrl+Alt+Up/Down Command+Option+Up/Down Jump to Matching Brace/Paren Ctrl+P Ctrl+P
查并替换Ctrl+F Command+F
查下⼀个Win: F3, Linux: Ctrl+G Command+G
查上⼀个Win: Shift+F3, Linux: Ctrl+Shift+G Command+Shift+G
替换并查Ctrl+=Command+=
替换并查Ctrl+=Command+=
在⽂件中茶轴啊Ctrl+Shift+F Command+Shift+F 拼写检查F7F7
Editing (Console and Source)
Description Windows & Linux Mac
撤销Ctrl+Z Command+Z
重复上次操作Ctrl+Shift+Z Command+Shift+Z 剪切Ctrl+X Command+X
复制Ctrl+C Command+C
粘贴Ctrl+V Command+V
console命令大全
全选Ctrl+A Command+A
跳转到单词Ctrl+Left/Right Option+Left/Right
跳转到开头/结尾Ctrl+Home/End or Ctrl+Up/Down Command+Home/End or Command+Up/Down
删除⾏Ctrl+D Command+D
选择Shift+[Arrow]Shift+[Arrow]
选择⼀个词Ctrl+Shift+Left/Right Option+Shift+Left/Right
选中光标处到⾏⾸的内容Shift+Home Command+Shift+Left or Shift+Home 选中光标处到⾏末的内容S
hift+End Command+Shift+Right or Shift+End Select Page Up/Down Shift+PageUp/PageDown Shift+PageUp/Down
选中到⽂件开始/末尾的内容Ctrl+Shift+Home/End or
Shift+Alt+Up/Down
Command+Shift+Up/Down
删除左边的单词Ctrl+Backspace Option+Backspace or Ctrl+Option+Backspace
删除右边的单词 Option+Delete
删除光标到⾏末的内容 Ctrl+K
删除光标到⾏⾸的内容 Option+Backspace
缩进Tab (at beginning of line)Tab (at beginning of line)取消缩进Shift+Tab Shift+Tab
Yank line up to cursor Ctrl+U Ctrl+U
Yank line after cursor Ctrl+K Ctrl+K
Insert currently yanked text Ctrl+Y Ctrl+Y
Insert assignment operator Alt+-Option+-
查看光标处的函数帮助F1F1
查看光标处的函数代码F2F2
Completions (Console and Source)
Description Windows & Linux Mac
⾃动完成Tab or Ctrl+Space Tab or Command+Space 在历史命令中导航Up/Down Up/Down
选定命令Enter, Tab, or Right Enter, Tab, or Right
离开弹出的⾃动完成提⽰框Esc Esc
Views
Description Windows & Linux Mac
跳转到⽂件/函数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/SVN Ctrl+9Ctrl+9
显⽰Build Ctrl+0Ctrl+0
同步编辑器和PDF预览Ctrl+F8Command+F8
Build
Description Windows & Linux Mac
编译和重载Ctrl+Shift+B Command+Shift+B
加载所有(devtools)Ctrl+Shift+L Command+Shift+L
检查包Ctrl+Shift+E Command+Shift+E
Plots
Description Windows & Linux Mac
上⼀个图像Ctrl+Shift+PageUp Command+Shift+PageUp
上⼀个图像Ctrl+Shift+PageUp Command+Shift+PageUp
下⼀个图像Ctrl+Shift+PageDown Command+Shift+PageDown 显⽰操作者Ctrl+Shift+M Command+Shift+M
Git/SVN
Description Windows & Linux Mac
对⽐当前源码⽂件Ctrl+Shift+D Command+Shift+D
提交修改Ctrl+Shift+M Command+Shift+M
滚动查看不同Ctrl+Up/Down Ctrl+Up/Down
Stage/Unstage (Git)Spacebar Spacebar
Stage/Unstage and move next (Git)Enter Enter

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。