| Console |
||
| Description |
Windows & Linux |
Mac |
| 將光標定位到控制台 |
Ctrl+2 |
Ctrl+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+1 |
Ctrl+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+0 |
Command+Option+0 |
| 打開所有代碼 |
Shift+Alt+0 |
Command+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+F9 |
Command+F9 |
| 向后導航(類似瀏覽器←) |
Ctrl+F10 |
Command+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+Shift+F |
Command+Shift+F |
| 拼寫檢查 |
F7 |
F7 |
|
|
|
|
| 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 |
| 全選 |
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 |
| 選中光標處到行末的內容 |
Shift+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+- |
| 查看光標處的函數幫助 |
F1 |
F1 |
| 查看光標處的函數代碼 |
F2 |
F2 |
|
|
|
|
| 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+1 |
Ctrl+1 |
| 將光標定位到控制台 |
Ctrl+2 |
Ctrl+2 |
| 將焦點定位到幫助 |
Ctrl+3 |
Ctrl+3 |
| 顯示歷史 |
Ctrl+4 |
Ctrl+4 |
| 顯示文件 |
Ctrl+5 |
Ctrl+5 |
| 顯示圖像 |
Ctrl+6 |
Ctrl+6 |
| 顯示包 |
Ctrl+7 |
Ctrl+7 |
| 顯示工作空間 |
Ctrl+8 |
Ctrl+8 |
| 顯示Git/SVN |
Ctrl+9 |
Ctrl+9 |
| 顯示Build |
Ctrl+0 |
Ctrl+0 |
| 同步編輯器和PDF預覽 |
Ctrl+F8 |
Command+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+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 |
