立即注册 登录
气象家园 返回首页

主啊的个人空间 http://bbs.06climate.com/?69999 [收藏] [复制] [分享] [RSS]

日志

R语言快捷键

已有 171 次阅读2018-11-30 12:56

控制台

功能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 Letters
Ctrl+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 Right
Option+Delete
Delete to Line End
Ctrl+K
Delete to Line Start
Option+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

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

返回顶部