RStudio (MacOS)

Source

Close active document (except on Chrome)

Command + W

All hotkeys for RStudio (MacOS)

Console
Move cursor to console

Ctrl + 2

Console
Clean console

Ctrl + L

Console
Move cursor to beginning of line

Command + Left

Console
Move cursor to end of line

Command + Right

Console
Navigate command history

Up / Down

Console
Popup command history

Command + Up

Console
Interrupt currently executing command

Esc

Console
Change working directory

Ctrl + Shift + H

Source
Goto file/function

Ctrl + .

Source
Move cursor to source editor

Ctrl + 1

Source
New document (except on chrome/windows)

Command + Shift + N

Source
New document (Chrome only)

Command + Option + Shift + N

Source
Open document

Command + O

Source
Save active document

Command + S

Source
Close active document (except on Chrome)

Command + W

Source
Close active document (Chrome only)

Command + Option + W

Source
Close all open documents

Command + Shift + W

Source
Preview HTML (markdown and HTML)

Command + Shift + K

Source
Compile notebook/compile PDF (TeX and Sweave)

Command + Shift + K

Source
Insert chunk (Sweave and Knitr)

Command + Option + I

Source
Insert code section

Command + Shift + R

Source
Run current line/selection

Command + Enter

Source
Run current line/selection (retain cursor position)

Option + Enter

Source
Re-run previous region

Command + Shift + P

Source
Run current document

Command + Option + R

Source
Run from document beginning to current line

Command + Option + B

Source
Run from current line to document end

Command + Option + E

Source
Run from current line to document end

Command + Option + F

Source
Run the current code section

Command + Option + T

Source
Run previous sweave/Rmd code

Command + Option + P

Source
Run the current Sweave/Rmd chunk

Command + Option + C

Source
Run the next Sweave/Rmd chunk

Command + Option + N

Source
Source a file

Command + Shift + O

Source
Source the current document

Command + Shift + S

Source
Source the current document (with echo)

Command + Shift + Enter

Source
Fold selected

Command + Option + L

Source
Unfold selected

Command + Shift + Option + L

Source
Fold all

Commad + Option + O

Source
Unfold all

Commad + Shift + Option + O

Source
Go to line

Commad + Shift + Option + G

Source
Jump to

Commad + 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

Command + F9

Source
Navigate forward

Command + F10

Source
Extract function from selection

Command + Option + X

Source
Extract variable from selection

Command + Option + V

Source
Reindent lines

Command + I

Source
Comment/uncomment current line/selection

Command + Shift + C

Source
Reflow comment

Command + Shift + /

Source
Reformat selection

Command + Shift + A

Source
Show diagnostics

Command + Shift + Shift + P

Source
Move lines Up/Down

Option + Up/Down

Source
Copy lines Up/Down

Command + Option + Up/Down

Source
Jump to matching Brace/Paren

Ctrl + P

Source
Expand to matching Brace/Paren

Ctrl + Shift + E

Source
Select to matching Brace/Paren

Command + Shift + Option + E

Source
Add cursor above current cursor

Ctrl + Option + Up

Source
Add cursor beow current cursor

Command + Option + Down

Source
Move active cursor up

Ctrl + Option + Shift + Up

Source
Move Active Cursor Down

Ctrl + Option + Shift + Down

Source
Find and replace

Command + F

Source
Find next

Commad + G

Source
Find previous

Commad + Shift + F3

Source
Use selection for find

Command + E

Source
Replace and find

Command + Shift + J

Source
Find in files

Command + Shift + F

Source
Check spelling

F7

Completions (Console and Source)
Attempt completion

Tab / Command + Space

Completions (Console and Source)
Navigate candidates

Up / Down

Completions (Console and Source)
Accept selected candidate

Enter / Tab / Right

Completions (Console and Source)
Dismiss completion popup

Esc

Views
Move focus to Source Editor

Command + 1

Views
Move focus to Console

Command + 2

Views
Move focus to Help

Command + 3

Views
Show History

Command + 4

Views
Show files

Command + 5

Views
Show plots

Command + 6

Views
Show packages

Command + 7

Views
Show environment

Command + 8

Views
Show git/svn

Command + 9

Views
Show build

Command + 0

Views
Sync editor & pdf preview

Command + F8

Views
Reference

Option + Shift + K

Build
Build and reload

Command + Shift + B

Build
Load all (devtools)

Command + Shift + L

Build
Test package (desktop)

Command + Shift + T

Build
Test package (web)

Command + Option + F7

Build
Check package

Command + Shift + E

Build
Document package

Command + 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

Command + Option + F11

Plots
Next plot

Command + Option + F12

Git / SVN
Diff active source document

Ctrl + Option + D

Git / SVN
Commit changes

Ctrl + Option + M

Git / SVN
Scroll diff view

Ctrl + Up/Down

Git / SVN
Stage/unstage(Git)

Spacebar

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

Enter

Session
Quit Session (desktop only)

Command + Q

Session
Restart R Session

Command + Shift + F10

Editing (Console and Source)
Undo

Command + Z

Editing (Console and Source)
Redo

Command + Shift + Z

Editing (Console and Source)
Cut

Command + X

Editing (Console and Source)
Copy

Command + C

Editing (Console and Source)
Paste

Command + V

Editing (Console and Source)
Select all

Command + A

Editing (Console and Source)
Jump to word

Command + Left/Right

Editing (Console and Source)
Jump to start/end

Command + Home/End / Command + Up/Down

Editing (Console and Source)
Delete line

Command + D

Editing (Console and Source)
Select

Shift + Arrow

Editing (Console and Source)
Select word

Option + Shift + Left/Right

Editing (Console and Source)
Select to line start

Command + Shift + Left

Editing (Console and Source)
Select to line end

Command + Shift + RIght

Editing (Console and Source)
Select page up/down

Shift + Page Up / Shift + Page down

Editing (Console and Source)
Select page start/end

Command + Shift + Home/End

Editing (Console and Source)
Delete word left

Option + Backspace

Editing (Console and Source)
Indent

Tab

Editing (Console and Source)
Outdent

Shift + Tab

Editing (Console and Source)
Yank line up to cursor

Ctrl + U

Editing (Console and Source)
Yank line after cursor

Ctrl + K

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

Command + 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++)

Command + Option + U

Similar combinations for other applications


Thunderbird (MacOS)
Close window or tab
Navigate Messages

Command + W


Firefox (MacOS)
Close Tab
Window and Tabs

Command + W


Google Chrome (MacOS)
Close tab (or close Chrome if only one tab is open)
Manage Tabs

Command + W


Adobe Photoshop CC (MacOS)
Close
Basic Shortcuts for PhotoShop CC 2015 - File Basics

Command + W


Adobe After Effects CC (MacOS)
Close active Viewer or Panel (closes content first)
Panels, Viewers, Workspaces, and Windows

Command + W


Adobe Premiere CC (MacOS)
Close
General Shortcuts

Command + W


Apple Numbers (MacOS)
Close window
General Shortcuts

Command + W


Nuke 10 (MacOS)
Close current project
Global Shortcuts

Command + W


FileMaker Pro (MacOS)
Close a file
General Shortcuts

Command + W


Adobe Photoshop CC (MacOS)
Close
Manage Panels - File Basics

Command + W


Corel Painter 2017 (MacOS)
Close
General Shortcuts

Command + W


Finale (MacOS)
Close
File Menu

Command + W


FileMaker Pro (MacOS)
Close a window
Navigation and Window Display

Command + W


InDesign CC (MacOS)
Close window
File Menu Shortcuts

Command + W


ArchiCAD 20 (MacOS)
Close
File Menu Commands

Command + W


Hexagon 2 (MacOS)
Close
General Shortcuts

Command + W


Apple Motion (MacOS)
Close a project or active window
General Interface

Command + W


Apple Motion (MacOS)
Close a project
File Menu

Command + W


Apple Pages (MacOS)
Close window
General

Command + W


GIMP (MacOS)
Close
File operations

Command + W


1Password (MacOS)
Close window.
Main App Shortcuts

Command + W


Mac OS Sierra 10.12 (MacOS)
Close the front window. To close all windows of the app, press Command+Option+W.
Common Shortcuts

Command + W


Adobe Acrobat Pro (MacOS)
Close Help window
Navigation - Navigating the Help window

Command + W / Alt + F4


Final Cut Pro (MacOS)
Close window
File

Command + W


Atom (text editor) 1.0 (MacOS)
Close tab
File Management

Command + W


Apple Photos (MacOS)
Close window
General

Command + W


JetBrains RubyMine (MacOS)
Close Current Active Tab
General Shortcuts

Command + W


IntelliJ (MacOS)
Close Active Editor Tab
Editing Shortcuts

Command + W


Sublime Text (MacOS)
Close Current Tab
Navigation through Tabs

Command + W


JetBrains PyCharm (MacOS)
Close Current Active Tab
General Shortcuts

Command + W


JetBrains AppCode (MacOS)
Close Current Active Tab
General Shortcuts

Command + W


Logic Pro X (MacOS)
Close Window
General Controls

Command + W


JetBrains PhpStorm (MacOS)
Close Active editor tab
Editing

Command + W


Steinberg Cubase 9 (MacOS)
Close
File

Command + W


OmniFocus (MacOS)
Close
File Menu

Command + W


Chief Architect (MacOS)
Close View
View Mode

Command + W / Command + F4


Brackets (MacOS)
Close Current File
File Operation

Command + W


Poser Pro (MacOS)
Close
File

Command + W


Garageband 10 (MacOS)
Close the current window or project
General Shortcuts

Command + W


Adobe Captivate 2017 (MacOS)
Close the project
General and Miscellaneous Shortcuts

Command + W


Flock (MacOS)
Close tab
45 Shortcuts for Flock (MacOS)

Command + W


Flock (MacOS)
Close window
45 Shortcuts for Flock (MacOS)

Command + W


QuickTime Player (MacOS)
Close window
QuickTime Player basic tasks

Command + W


Panic Coda (MacOS)
Close File
Files Shortcuts

Command + W


Xamarin Studio (MonoDevelop) (MacOS)
Close File
File Menu

Command + W


Tableau (MacOS)
Closes the current workbook
General

Command + W


QCad (MacOS)
Close current drawing
File Handlng

Command + W


Spotify (MacOS)
Close window
General

Command + W


OpenSCAD (MacOS)
Close
View Shortcuts

Command + W


Compressor (Web Application)
Close the Compressor window
General

Command + W


CuteFTP (MacOS)
Opens selected file for editing
72 Shortcuts for CuteFTP (MacOS)

Command + W


Modo (MacOS)
Close current scene
General/System

Command + W


Wordfast Pro (MacOS)
Close
100 Shortcuts for Wordfast Pro (MacOS)

Command + W / Command + F4


Geany (MacOS)
Close
Files

Command + W


Inkscape (MacOS)
Close the dialog
Dialogs

Command + F4 / Command + W


Vectorworks (MacOS)
Close
File Menu

Command + W


Inkscape (MacOS)
Close document window
Window

Command + F4 / Command + W


KiCAD (MacOS)
Switch Track Width to Previous
PCB

Command + W


Foxit Reader (MacOS)
Close File
30 Shortcuts for Foxit Reader (MacOS)

Command + W


Arduino (MacOS)
Close
29 Shortcuts for Arduino (MacOS)

Command + W


WavPad Sound Editor (MacOS)
Close file
File Operation

Command + W


FlexiSign Pro 8.1 (MacOS)
Close
Other Shortcuts

Command + W


Adobe After Effects CS5 (MacOS)
Close active viewer window or panel (closes content first)
Panels, Viewers, Workspaces, and Windows

Command + W


Pencil2D (MacOS)
Crop
29 Shortcuts for Pencil2D (MacOS)

Command + W


Adobe Dreamweaver (MacOS)
Close Window
Coding Shortcuts

Command + W