Useful Keyboard Shortcuts
These (select) keyboard shortcuts speed up common tasks like copy/paste and moving between application windows. I've also included R specific shortcuts, as these differ betwen Mac vs Windows. See the links at the top of each section for more a comprehensive keyboard shortcut list.
Mac (OS X) users can click here for OS X (Mac) Keyboard Shortcuts or just scroll down past the Windows shortcuts.
Windows Keyboard Shortcuts
For more, see "Keyboard shortcuts for Windows" at support.microsoft.com/kb/126449.
Drop-down Menus: See those underlined characters?
Alt-[character] is equivalent to clicking the word with your mouse!
Within menus, type the underlined character without the
Alt key to select.
To move through the menus, use arrows.
Ctrl-c/-x/-v to copy/cut/paste selected text
Ctrl-a to select all text in an editor, text box, etc.
Ctrl-backspace to delete the word behind the cursor
Ctrl-delete to delete the word ahead of the cursor
Ctrl-z to undo
Alt-tab to switch between windows (
Alt-shift-tab to cycle the other direction)
Ctrl-Home/Ctrl-End to jump to top / bottom of text
Ctrl-arrow to skip left or right over words instead of single characters/spaces.
Ctrl-PageUp/Ctrl-PageDown move between tabs (browsers, notepad++, RStudio, etc.)
Prnt Scrn to do a screen capture.
R Editor
Ctrl-R runs the current line (or block of highlighted lines) of code
Ctrl-Shift-R runs the entire script
RStudio
RStudio uses
Ctrl-Enter and
Ctrl-Alt-R, respectively.
Ctrl-Shift-K Compile knitr or R Markdown document
More RStudio shortcuts:
support.rstudio.com/hc/en-us/articles/200711853-Keyboard-Shortcuts
OS X (Mac) Keyboard Shortcuts
For more, see "OS X keyboard shortcuts" at support.apple.com/kb/ht1343.
Cmnd-c/-x/-v to copy/cut/paste selected text
Cmnd-a to select all text in an editor, text box, etc.
Option-Delete to delete the word behind the cursor
Shift-option-delete to delete the word ahead of the cursor
Cmnd-z to undo
Cmnd-tab to switch between windows (
Cmnd-shift-tab to cycle the other direction)
Cmnd-up/down to jump to top/bottom of text (
Fn-Up/Down to page up/down)
Option-left/-right arrow to skip left/right over words instead of single characters/spaces.
Command-left/-right arrow to beginning/end of current line.
Ctrl-Fn-Up/Down move between tabs (in excel, browsers, notepad++, RStudio, etc.) [Cmnd-Fn-arrow?? This may not work...]
Cmnd-Shift-3 full screen capture.
Cmnd-Shift-4 selectable region screen capture. See link above for other options.
R Editor
Ctrl-R runs the current line (or block of highlighted lines) of code
Ctrl-Shift-R runs the entire script
RStudio
RStudio uses
Cmnd-Enter and
Cmnd-Opt-R, respectively.
Cmnd-Shift-K Compile knitr or R Markdown document
More RStudio shortcuts:
support.rstudio.com/hc/en-us/articles/200711853-Keyboard-Shortcuts