1. 程式人生 > >R語言快捷鍵

R語言快捷鍵

ctrl+c fin mman 關閉 dism com 文件 fun bar

一、控制臺

功能 Windows & Linux Mac

  1. 移動鼠標到控制臺 Ctrl+2 Ctrl+2
  2. 移動到鼠標命令編輯 Ctrl+1 Ctrl+1
  3. 控制臺清屏 Ctrl+L Command+L
  4. 移動鼠標至第一行 Home Command+Left
  5. 移動鼠標至最後一行 End Command+Right
  6. 歷史記錄翻滾 Up/Down Up/Down
  7. 彈出歷史記錄欄 Ctrl+Up Command+Up
  8. 終止目前命令 Esc Esc
  9. 改變工作路徑 Ctrl+Shift+K Ctrl+Shift+K

二、代碼區

  功能 Windows & Linux Mac

  1. 移動鼠標到文件搜索區 Ctrl+. Ctrl+.
  2. 移動鼠標至文件編輯區 Ctrl+1 Ctrl+1
  3. 新文檔(chrome除外) Ctrl+Shift+N Command+Shift+N
  4. 打開文檔 Ctrl+O Command+O
  5. 保存當前文檔 Ctrl+S Command+S
  6. 關閉當前文檔(chrome除外) Ctrl+W Command+W
  7. 關閉當前文檔(chrome) Ctrl+Shift+Z Command+Shift+Z
  8. 關閉所有文檔 Ctrl+Shift+W Command+Shift+W
  9. 預覽HTML Ctrl+Shift+Y Command+Shift+Y
  10. 轉換為HTML Ctrl+Shift+H Command+Shift+H
  11. 編譯PDF (TeX and Sweave) Ctrl+Shift+I Command+Shift+I
  12. 插入塊 Ctrl+Alt+I Command+Option+I
  13. 插入代碼塊 Ctrl+Shift+R Command+Shift+R
  14. 運行當前行 Ctrl+Enter Command+Enter
  15. 重新運行當前區 Ctrl+Shift+P Command+Shift+P
  16. 運行當前文檔 Ctrl+Alt+R Command+Option+R
  17. 從開始運行至當前行 Ctrl+Alt+B Command+Option+B
  18. 從當前行運行至結尾 Ctrl+Alt+E Command+Option+E
  19. 運行當前函數定義 Ctrl+Alt+F Command+Option+F
  20. 運行當前塊 Ctrl+Alt+C Command+Option+C
  21. 運行下一個塊 Ctrl+Alt+N Command+Option+N
  22. 執行一個文件 Ctrl+Shift+O Command+Shift+O
  23. 執行當前文檔 Ctrl+Shift+S Command+Shift+S
  24. 執行當前文檔並且顯示 Ctrl+Shift+Enter Command+Shift+Enter
  25. 折疊選項 Alt+L Command+Option+L
  26. 打開選項 Shift+Alt+L Command+Shift+Option+L
  27. 折疊所有 Alt+0 Command+Option+0
  28. 打開所有 Shift+Alt+0 Command+Shift+Option+0
  29. 前往行 Shift+Alt+G Command+Shift+Option+G
  30. 跳至 Shift+Alt+J Command+Shift+Option+J
  31. 換頁 Ctrl+Alt+Down Ctrl+Option+Down
  32. 前一頁 Win: Ctrl+Alt+Left, Linux: Ctrl+PageUp Ctrl+Option+Left
  33. 後一頁 Win: Ctrl+Alt+Right, Linux: Ctrl+PageDown Ctrl+Option+Right
  34. 第一頁 Ctrl+Shift+Alt+Left Ctrl+Shift+Option+Left
  35. 最後一頁 Ctrl+Shift+Alt+Right Ctrl+Shift+Option+Right
  36. 往回導航 Ctrl+F9 Command+F9
  37. 向前導航 Ctrl+F10 Command+F10
  38. 行縮進 Ctrl+I Command+I
  39. 從選擇中抽取函數 Ctrl+Shift+U Command+Shift+U
  40. 註釋/取消註釋當前行 Ctrl+Shift+C Command+Shift+C
  41. 重新註釋 Ctrl+Shift+/ Command+Shift+/
  42. Transpose Letters Ctrl+T
  43. Move Lines Up/Down Alt+Up/Down Option+Up/Down
  44. Copy Lines Up/Down Ctrl+Alt+Up/Down Command+Option+Up/Down
  45. Jump to Matching Brace/Paren Ctrl+P Ctrl+P
  46. Find and Replace Ctrl+F Command+F
  47. Find Next Win: F3, Linux: Ctrl+G Command+G
  48. Find Previous Win: Shift+F3, Linux: Ctrl+Shift+G Command+Shift+G
  49. Replace and Find Ctrl+= Command+=
  50. Find in Files Ctrl+Shift+F Command+Shift+F
  51. Check spelling F7 F7

三、Editing (Console and Source)

  Description Windows & Linux Mac

  1. Undo Ctrl+Z Command+Z
  2. Redo Ctrl+Shift+Z Command+Shift+Z
  3. Cut Ctrl+X Command+X
  4. Copy Ctrl+C Command+C
  5. Paste Ctrl+V Command+V
  6. Select All Ctrl+A Command+A
  7. Jump to Word Ctrl+Left/Right Option+Left/Right
  8. Jump to Start/End Ctrl+Home/End or Ctrl+Up/Down Command+Home/End or Command+Up/Down
  9. Delete Line Ctrl+D Command+D
  10. Select Shift+[Arrow] Shift+[Arrow]
  11. Select Word Ctrl+Shift+Left/Right Option+Shift+Left/Right
  12. Select to Line Start Shift+Home Command+Shift+Left or Shift+Home
  13. Select to Line End Shift+End Command+Shift+Right or Shift+End
  14. Select Page Up/Down Shift+PageUp/PageDown Shift+PageUp/Down
  15. Select to Start/End Ctrl+Shift+Home/End or Shift+Alt+Up/Down Command+Shift+Up/Down
  16. Delete Word Left Ctrl+Backspace Option+Backspace or Ctrl+Option+Backspace
  17. Delete Word Right Option+Delete
  18. Delete to Line End Ctrl+K
  19. Delete to Line Start Option+Backspace
  20. Indent Tab (at beginning of line) Tab (at beginning of line)
  21. Outdent Shift+Tab Shift+Tab
  22. Yank line up to cursor Ctrl+U Ctrl+U
  23. Yank line after cursor Ctrl+K Ctrl+K
  24. Insert currently yanked text Ctrl+Y Ctrl+Y
  25. Insert assignment operator Alt+- Option+-
  26. Show help for function at cursor F1 F1
  27. Show source code for function at cursor F2 F2
  28. Completions (Console and Source)
  29. Description Windows & Linux Mac
  30. Attempt completion Tab or Ctrl+Space Tab or Command+Space
  31. Navigate candidates Up/Down Up/Down
  32. Accept selected candidate Enter, Tab, or Right Enter, Tab, or Right
  33. Dismiss completion popup Esc Esc

四、Views

  Description Windows & Linux Mac

  1. Goto File/Function Ctrl+. Ctrl+.
  2. Move cursor to Source Editor Ctrl+1 Ctrl+1
  3. Move cursor to Console Ctrl+2 Ctrl+2
  4. Move focus to Help Ctrl+3 Ctrl+3
  5. Show History Ctrl+4 Ctrl+4
  6. Show Files Ctrl+5 Ctrl+5
  7. Show Plots Ctrl+6 Ctrl+6
  8. Show Packages Ctrl+7 Ctrl+7
  9. Show Workspace Ctrl+8 Ctrl+8
  10. Show Git/SVN Ctrl+9 Ctrl+9
  11. Show Build Ctrl+0 Ctrl+0
  12. Sync Editor and PDF Preview Ctrl+F8 Command+F8

五、Build

  Description Windows & Linux Mac

  1. Build and Reload Ctrl+Shift+B Command+Shift+B
  2. Load All (devtools) Ctrl+Shift+L Command+Shift+L
  3. Check Package Ctrl+Shift+E Command+Shift+E

六、Plots

  Description Windows & Linux Mac

  1. Previous plot Ctrl+Shift+PageUp Command+Shift+PageUp
  2. Next plot Ctrl+Shift+PageDown Command+Shift+PageDown
  3. Show manipulator Ctrl+Shift+M Command+Shift+M

七、Git/SVN

  Description Windows & Linux Mac

  1. Diff active source document Ctrl+Shift+D Command+Shift+D
  2. Commit changes Ctrl+Shift+M Command+Shift+M
  3. Scroll diff view Ctrl+Up/Down Ctrl+Up/Down
  4. Stage/Unstage (Git) Spacebar Spacebar
  5. Stage/Unstage and move next (Git) Enter Enter

R語言快捷鍵