RStudio (Mac)

Editing (Console and Source)

Copy

⌘ Cmd + C

All hotkeys for RStudio (Mac)

Views
Move focus to Console

Ctrl + 2

Console
Clear console

Ctrl + L

Console
Move cursor to beginning of line

⌘ Cmd +

Console
Move cursor to end of line

⌘ Cmd +

Completions (Console and Source)
Navigate candidates

↑  ↓

Console
Popup command history

⌘ Cmd +

Completions (Console and Source)
Dismiss completion popup

Esc

Console
Change working directory

Ctrl + ↑   Shift + H

Source
Goto File/Function

Ctrl + .

Views
Move focus to Source Editor

Ctrl + 1

Source
New document (except on Chrome/Windows)

⌘ Cmd + ↑   Shift + N

Source
New document (Chrome only)

⌘ Cmd + ↑   Shift + Alt + N

Source
Open document

⌘ Cmd + O

Source
Save active document

⌘ Cmd + S

Source
Close active document (except on Chrome)

⌘ Cmd + W

Source
Close active document (Chrome only)

⌘ Cmd + ⌥ Option + W

Source
Close all open documents

⌘ Cmd + ↑   Shift + W

Source
Compile PDF (TeX and Sweave)

⌘ Cmd + ↑   Shift + K

Source
Insert chunk (Sweave and Knitr)

⌘ Cmd + ⌥ Option + I

Source
Insert code section

⌘ Cmd + ↑   Shift + R

Source
Run current line/selection

⌘ Cmd + ⤶ Enter

Source
Run current line/selection (retain cursor position)

⌥ Option + ⤶ Enter

Source
Re-run previous region

⌘ Cmd + ↑   Shift + P

Source
Run current document

⌘ Cmd + ⌥ Option + R

Source
Run from document beginning to current line

⌘ Cmd + ⌥ Option + B

Source
Run from current line to document end

⌘ Cmd + ⌥ Option + E

Source
Run the current function definition

⌘ Cmd + ⌥ Option + F

Source
Run the current code section

⌘ Cmd + ⌥ Option + T

Source
Run previous Sweave/Rmd code

⌘ Cmd + ⌥ Option + P

Source
Run the current Sweave/Rmd chunk

⌘ Cmd + ⌥ Option + C

Source
Run the next Sweave/Rmd chunk

⌘ Cmd + ⌥ Option + N

Source
Source a file

⌘ Cmd + ↑   Shift + O

Source
Source the current document

⌘ Cmd + ↑   Shift + S

Source
Source the current document (with echo)

⌘ Cmd + ↑   Shift + ⤶ Enter

Source
Fold Selected

⌘ Cmd + ⌥ Option + L

Source
Unfold Selected

⌘ Cmd + ↑   Shift + ⌥ Option + L

Source
Fold All

⌘ Cmd + ⌥ Option + O

Source
Unfold All

⌘ Cmd + ↑   Shift + ⌥ Option + O

Source
Go to line

⌘ Cmd + ↑   Shift + ⌥ Option + G

Source
Jump to

⌘ Cmd + ↑   Shift + ⌥ Option + J

Source
Switch to tab

Ctrl + ↑   Shift + .

Source
Previous tab

Ctrl + F11

Source
Next tab

Ctrl + F12

Source
First tab

Ctrl + ↑   Shift + F11

Source
Last tab

Ctrl + ↑   Shift + F12

Source
Navigate back

⌘ Cmd + F9

Source
Navigate forward

⌘ Cmd + F10

Source
Extract function from selection

⌘ Cmd + ⌥ Option + X

Source
Extract variable from selection

⌘ Cmd + ⌥ Option + V

Source
Reindent lines

⌘ Cmd + I

Source
Comment/uncomment current line/selection

⌘ Cmd + ↑   Shift + C

Source
Reflow Comment

⌘ Cmd + ↑   Shift + /

Source
Reformat Selection

⌘ Cmd + ↑   Shift + A

Source
Show Diagnostics

⌘ Cmd + ↑   Shift + Alt + P

Source
Transpose Letters

Ctrl + T

Source
Move Lines Up/Down

⌥ Option + ↑  ↓

Source
Copy Lines Up/Down

⌘ Cmd + ⌥ Option + ↑  ↓

Source
Jump to Matching Brace/Paren

Ctrl + P

Source
Expand to Matching Brace/Paren

Ctrl + ↑   Shift + E

Source
Select to Matching Brace/Paren

Ctrl + ↑   Shift + Alt + E

Source
Add Cursor Above Current Cursor

Ctrl + Alt +

Source
Add Cursor Below Current Cursor

Ctrl + Alt +

Source
Move Active Cursor Up

Ctrl + Alt + ↑   Shift +

Source
Move Active Cursor Down

Ctrl + Alt + ↑   Shift +

Source
Find and Replace

⌘ Cmd + F

Source
Find Next

⌘ Cmd + G

Source
Find Previous

⌘ Cmd + ↑   Shift + G

Source
Use Selection for Find

⌘ Cmd + E

Source
Replace and Find

⌘ Cmd + ↑   Shift + J

Source
Find in Files

⌘ Cmd + ↑   Shift + F

Source
Check Spelling

F7

Editing (Console and Source)
Undo

⌘ Cmd + Z

Editing (Console and Source)
Redo

⌘ Cmd + ↑   Shift + Z

Editing (Console and Source)
Cut

⌘ Cmd + X

Editing (Console and Source)
Copy

⌘ Cmd + C

Editing (Console and Source)
Paste

⌘ Cmd + V

Editing (Console and Source)
Select All

⌘ Cmd + A

Editing (Console and Source)
Jump to Word

⌥ Option + ←  →

Editing (Console and Source)
Jump to Start/End

⌘ Cmd + Home

Editing (Console and Source)
Jump to Start/End

⌘ Cmd + End

Editing (Console and Source)
Jump to Start/End

⌘ Cmd + ↑  ↓

Editing (Console and Source)
Delete Line

⌘ Cmd + D

Editing (Console and Source)
Select

↑   Shift + ← ↑ → ↓

Editing (Console and Source)
Select Word

⌥ Option + ↑   Shift + ←  →

Editing (Console and Source)
Select to Line Start

⌘ Cmd + ↑   Shift +

Editing (Console and Source)
Select to Line End

⌘ Cmd + ↑   Shift +

Editing (Console and Source)
Select Page Up/Down

Shift + Page Up / Down

Editing (Console and Source)
Select to Start/End

⌘ Cmd + ↑   Shift + ↑  ↓

Editing (Console and Source)
Delete to Line Start

⌥ Option + ⬅ Backspace

Editing (Console and Source)
Delete Word Left

Ctrl + ⌥ Option + ⬅ Backspace

Editing (Console and Source)
Delete Word Right

⌥ Option + Del

Editing (Console and Source)
Yank line after cursor

Ctrl + K

Completions (Console and Source)
Accept selected candidate

⭾ Tab

Editing (Console and Source)
Outdent

↑   Shift + ⭾ Tab

Editing (Console and Source)
Yank line up to cursor

Ctrl + U

Editing (Console and Source)
Insert currently yanked text

Ctrl + Y

Editing (Console and Source)
Insert assignment operator

⌥ Option + -

Editing (Console and Source)
Insert pipe operator

⌘ Cmd + ↑   Shift + M

Editing (Console and Source)
Show help for function at cursor

F1

Editing (Console and Source)
Show source code for function at cursor

F2

Editing (Console and Source)
Find usages for symbol at cursor (C++)

⌘ Cmd + ⌥ Option + U

Completions (Console and Source)
Attempt completion

⌘ Cmd + Space

Git / SVN
Stage/Unstage and move to next (Git)

⤶ Enter

Completions (Console and Source)
Accept selected candidate

Views
Move focus to Help

Ctrl + 3

Views
Show History

Ctrl + 4

Views
Show Files

Ctrl + 5

Views
Show Plots

Ctrl + 6

Views
Show Packages

Ctrl + 7

Views
Show Environment

Ctrl + 8

Views
Show Git/SVN

Ctrl + 9

Views
Show Build

Ctrl + 0

Views
Sync Editor & PDF Preview

⌘ Cmd + F8

Views
Show Keyboard Shortcut Reference

⌥ Option + ↑   Shift + K

Build
Build and Reload

⌘ Cmd + ↑   Shift + B

Build
Load All (devtools)

⌘ Cmd + ↑   Shift + L

Build
Test Package (Desktop)

⌘ Cmd + ↑   Shift + T

Build
Test Package (Web)

⌘ Cmd + Alt + F7

Build
Check Package

⌘ Cmd + ↑   Shift + E

Build
Document Package

⌘ Cmd + ↑   Shift + D

Debug
Toggle Breakpoint

↑   Shift + F9

Debug
Execute Next Line

F10

Debug
Step Into Function

↑   Shift + F4

Debug
Finish Function/Loop

↑   Shift + F6

Debug
Continue

↑   Shift + F5

Debug
Stop Debugging

↑   Shift + F8

Plots
Previous plot

⌘ Cmd + ⌥ Option + F11

Plots
Next plot

⌘ Cmd + ⌥ Option + F12

Git / SVN
Diff active source document

Ctrl + ⌥ Option + D

Git / SVN
Commit changes

Ctrl + ⌥ Option + M

Git / SVN
Scroll diff view

Ctrl + ↑  ↓

Git / SVN
Stage/Unstage (Git)

Space

Session
Quit Session (desktop only)

⌘ Cmd + Q

Session
Restart R Session

⌘ Cmd + ↑   Shift + F10

Similar combinations for other applications


Webflow
Copy (Mac)
Copy / paste

⌘ Cmd + C


Coda for iOS
Copy
General

⌘ Cmd + C


DaVinci Resolve 15 (Mac)
Copy
Unknown menu

⌘ Cmd + C


App Maker
Copy the selected text
Code editor shortcuts - Mac

⌘ Cmd + C


Adobe Illustrator (Mac)
Copy
Frequently used shortcuts

⌘ Cmd + C


Substance Painter (Mac)
Copy layer
Non-editable shortcuts

⌘ Cmd + C


TextMate
Copy
General

⌘ Cmd + C


Ableton Live 10 (Mac)
Copy
Editing

⌘ Cmd + C


Tableau (Mac)
Copy selected data
Selection tools (Tableau Desktop)

⌘ Cmd + C


Final Cut Pro X
Copy the selection
Editing

⌘ Cmd + C


GeoGebra
Copy
Mac desktop

⌘ Cmd + C


QuickBooks Desktop (Mac)
Edit > Copy
Editing

⌘ Cmd + C


Sketch
Copy layer
General

⌘ Cmd + C


Asana (Mac)
Copy Selected Tasks
Task Actions

⌘ Cmd + C


Confluence (Mac)
Copy
Editor

⌘ Cmd + C


Total War: Attila (Mac)
Select all cavalry
Selection

⌘ Cmd + C


Adobe Dimension CC (Mac)
Copy
Edit menu

⌘ Cmd + C


Roll20
Copy selected object(s)
Tools

⌘ Cmd + C


Adobe Premiere Pro (Mac)
Copy
Edit

⌘ Cmd + C


Autodesk SketchBook (Mac)
Copy
Tools

⌘ Cmd + C


Corel Painter (Mac)
Copy
Edit menu

⌘ Cmd + C


Adobe XD (Mac)
Copy
Edit menu

⌘ Cmd + C


Pixelmator Pro
Copy a selected area
Selection tools

⌘ Cmd + C


AWS Cloud9 IDE (Mac)
Copy
Clipboard

⌘ Cmd + C


IntelliJ IDEA (macOS)
Copy current line to clipboard
Editing

⌘ Cmd + C


Apple Messages
Copy the selected text
Conversation shortcuts

⌘ Cmd + C


Apple iBooks
Copy the selection
Format text

⌘ Cmd + C


Apple iMovie
Copy the selected text
Editing text

⌘ Cmd + C


Apple GarageBand
Copy
General

⌘ Cmd + C


Google Sheets (Mac)
Copy
Common actions

⌘ Cmd + C


iPad Smart Keyboard
Copy
Selecting and editing text

⌘ Cmd + C


Apple Pages
Copy the selection
Formatting text

⌘ Cmd + C


Git Tower (Mac)
Copy SHA-1 hashes of selected commits to clipboard
Remote interactions & commit history

⌘ Cmd + C


Xcode
Duplicate the selected data and store on the Clipboard (equivalent to the Copy command)
Other system and application shortcuts

⌘ Cmd + C


Visual Studio Code (Mac)
Copy selection
Integrated terminal

⌘ Cmd + C


Apple macOS
Copy the selected item to the Clipboard. This also works for files in the Finder
Cut, copy, paste, and other common shortcuts

⌘ Cmd + C


CoffeeCup Web Editor
Copy
Clipboard

⌘ Cmd + C


iTunes 11 for Mac
Copy the selected song’s information or artwork
Edit menu

⌘ Cmd + C


Final Draft 11 (Mac)
Copy
Cmd key

⌘ Cmd + C