Keyboard shortcuts cheat sheet generator for your daily tools

Build one printable page from the shortcuts you actually use. Choose your apps, keep the platform you work on, and trim the groups until the sheet fits the work in front of you.

The preview is the thing you will print. Each app keeps its name and each group keeps its task heading, so a key such as Ctrl+P still makes sense when several apps share the same paper.

Choose apps

1 selected
RStudio
Platform
Groups

1 apps, 204 shortcuts

RStudio keyboard shortcuts

RStudio · Windows, macOS, Linux

ActionWindowsmacOSLinux
Command palette and accessibility
Show the Command PaletteCtrl Shift PShift Cmd PCtrl Shift P
Toggle screen reader supportAlt Shift /Ctrl Option /Alt Shift /
Speak the text editor locationAlt Shift 1Ctrl Option 1Alt Shift 1
Focus console outputCtrl `Ctrl `Ctrl `
Toggle Tab key always moves focusAlt Shift [Ctrl Option [Alt Shift [
Focus the next paneF6F6F6
Focus the previous paneShift F6Shift F6Shift F6
Focus the main toolbarAlt Shift YCtrl Option YAlt Shift Y
Console
Move the cursor to the ConsoleCtrl 2Ctrl 2Ctrl 2
Clear the consoleCtrl LCtrl LCtrl L
Move the cursor to the beginning of the lineHomeCmd LeftHome
Move the cursor to the end of the lineEndCmd RightEnd
Navigate command historyUp ArrowUp ArrowUp Arrow
Open the command history popupCtrl UpCmd UpCtrl Up
Interrupt the currently executing commandEscapeEscapeEscape
Change the working directoryCtrl Shift HCtrl Shift HCtrl Shift H
Source navigation and files
Go to a file or functionCtrl .Ctrl .Ctrl .
Move the cursor to the Source EditorCtrl 1Ctrl 1Ctrl 1
Toggle the document outlineCtrl Shift OShift Cmd OCtrl Shift O
Toggle the visual Markdown editorCtrl Shift F4Ctrl Shift F4Ctrl Shift F4
Create a new documentCtrl Shift NShift Cmd NCtrl Shift N
Create a new document in ChromeCtrl Alt Shift NOption Shift Cmd NCtrl Alt Shift N
Open a documentCtrl OCmd OCtrl O
Save the active documentCtrl SCmd SCtrl S
Save all documentsCtrl Alt SCmd Option SCtrl Alt S
Close the active documentCtrl WCmd WCtrl W
Close the active document in ChromeCtrl Alt WOption Cmd WCtrl Alt W
Close all open documentsCtrl Shift WShift Cmd WCtrl Shift W
Close other documentsCtrl Shift Alt WOption Shift Cmd WCtrl Shift Alt W
Preview HTMLCtrl Shift KShift Cmd KCtrl Shift K
Knit a documentCtrl Shift KShift Cmd KCtrl Shift K
Compile a notebookCtrl Shift KShift Cmd KCtrl Shift K
Compile a PDFCtrl Shift KShift Cmd KCtrl Shift K
Insert a code chunkCtrl Alt IOption Cmd ICtrl Alt I
Insert a code sectionCtrl Shift RShift Cmd RCtrl Shift R
Run the current line or selectionCtrl EnterCmd ReturnCtrl Enter
Run the current line or selection and retain the cursorAlt EnterOption ReturnAlt Enter
Re-run the previous regionCtrl Alt POption Cmd PCtrl Alt P
Run the current documentCtrl Alt ROption Cmd RCtrl Alt R
Run from the document beginning to the current lineCtrl Alt BOption Cmd BCtrl Alt B
Run from the current line to the document endCtrl Alt EOption Cmd ECtrl Alt E
Run the current function definitionCtrl Alt FOption Cmd FCtrl Alt F
Run the current code sectionCtrl Alt TOption Cmd TCtrl Alt T
Run previous Sweave or R Markdown codeCtrl Alt Shift POption Shift Cmd PCtrl Alt Shift P
Run the current Sweave or R Markdown chunkCtrl Alt COption Cmd CCtrl Alt C
Run the next Sweave or R Markdown chunkCtrl Alt NOption Cmd NCtrl Alt N
Source a fileCtrl Alt GCtrl Option GCtrl Alt G
Source the current documentCtrl Shift SShift Cmd SCtrl Shift S
Source the current document with echoCtrl Shift EnterShift Cmd ReturnCtrl Shift Enter
Send the current line or selection to the terminalCtrl Alt EnterOption Cmd ReturnCtrl Alt Enter
Source structure and tabs
Fold selected codeAlt LOption Cmd LAlt L
Unfold selected codeShift Alt LOption Shift Cmd LShift Alt L
Fold all codeAlt OOption Cmd OAlt O
Unfold all codeShift Alt OOption Shift Cmd OShift Alt O
Go to a lineShift Alt GOption Shift Cmd GShift Alt G
Jump toShift Alt JOption Shift Cmd JShift Alt J
Expand selectionCtrl Shift UpCtrl Option Shift UpCtrl Shift Up
Shrink selectionCtrl Shift DownCtrl Option Shift DownCtrl Shift Down
Go to the next sectionCtrl Page DownCtrl Page DownCtrl Page Down
Go to the previous sectionCtrl Page UpCtrl Page UpCtrl Page Up
Split into linesCtrl Alt ACtrl Alt ACtrl Alt A
Edit lines from the startCtrl Alt Shift ACtrl Alt Shift ACtrl Alt Shift A
Switch to a tabCtrl Shift .Ctrl Shift .Ctrl Shift .
Go to the previous tabCtrl F11Ctrl F11Ctrl F11
Go to the previous tab on desktopCtrl Shift TabCtrl Shift TabCtrl Shift Tab
Go to the next tabCtrl F12Ctrl F12Ctrl F12
Go to the next tab on desktopCtrl TabCtrl TabCtrl Tab
Go to the first tabCtrl Shift F11Ctrl Shift F11Ctrl Shift F11
Go to the last tabCtrl Shift F12Ctrl Shift F12Ctrl Shift F12
Navigate backCtrl F9Cmd F9Ctrl F9
Navigate forwardCtrl F10Cmd F10Ctrl F10
Extract a function from the selectionCtrl Alt XOption Cmd XCtrl Alt X
Extract a variable from the selectionCtrl Alt VOption Cmd VCtrl Alt V
Reindent linesCtrl ICmd ICtrl I
Comment or uncomment the current line or selectionCtrl Shift CShift Cmd CCtrl Shift C
Reflow a commentCtrl Shift /Ctrl Shift /Ctrl Shift /
Reformat the selectionCtrl Shift AShift Cmd ACtrl Shift A
Show diagnostics for the current projectCtrl Shift Alt DOption Shift Cmd DCtrl Shift Alt D
Move lines up or downAlt UpOption UpAlt Up
Copy lines up or downShift Alt UpOption Cmd UpShift Alt Up
Jump to the matching brace or parenthesisCtrl PCtrl PCtrl P
Expand to the matching brace or parenthesisCtrl Shift Alt ECtrl Shift ECtrl Shift Alt E
Add a cursor above the current cursorCtrl Alt UpCtrl Option UpCtrl Alt Up
Add a cursor below the current cursorCtrl Alt DownCtrl Option DownCtrl Alt Down
Move the active cursor upCtrl Alt Shift UpCtrl Option Shift UpCtrl Alt Shift Up
Move the active cursor downCtrl Alt Shift DownCtrl Option Shift DownCtrl Alt Shift Down
Find and editing
Find and replaceCtrl FCmd FCtrl F
Find the next matchF3Cmd GF3
Find the previous matchShift F3Shift Cmd GShift F3
Use the selection for FindCtrl F3Cmd ECtrl F3
Replace and findCtrl Shift JShift Cmd JCtrl Shift J
Find in filesCtrl Shift FShift Cmd FCtrl Shift F
Check spellingF7F7F7
Rename a symbol in scopeCtrl Alt Shift MOption Shift Cmd MCtrl Alt Shift M
Insert an Roxygen skeletonCtrl Shift Alt ROption Shift Cmd RCtrl Shift Alt R
UndoCtrl ZCmd ZCtrl Z
RedoCtrl Shift ZShift Cmd ZCtrl Shift Z
CutCtrl XCmd XCtrl X
CopyCtrl CCmd CCtrl C
PasteCtrl VCmd VCtrl V
Paste with indentCtrl Shift VShift Cmd VCtrl Shift V
Select allCtrl ACmd ACtrl A
Jump to the previous or next wordCtrl LeftOption LeftCtrl Left
Jump to the start or endCtrl HomeCmd UpCtrl Home
Delete a lineCtrl DCmd DCtrl D
Select with the arrow keysShift Arrow keysShift Arrow keysShift Arrow keys
Select a wordCtrl Shift LeftOption Shift LeftCtrl Shift Left
Select to the line startAlt Shift LeftShift Cmd LeftAlt Shift Left
Select to the line endAlt Shift RightShift Cmd RightAlt Shift Right
Select a page up or downShift Page UpShift Page UpShift Page Up
Select to the start or endCtrl Shift HomeShift Cmd UpCtrl Shift Home
Delete the word to the leftCtrl BackspaceOption BackspaceCtrl Backspace
Delete the word to the rightNot documentedOption DeleteNot documented
Delete to the line endNot documentedCtrl KNot documented
Delete to the line startNot documentedOption BackspaceNot documented
Indent at the beginning of a lineTabTabTab
OutdentShift TabShift TabShift Tab
Yank the line up to the cursorCtrl UCtrl UCtrl U
Yank the line after the cursorCtrl KCtrl KCtrl K
Insert currently yanked textCtrl YCtrl YCtrl Y
Insert the assignment operatorAlt -Option -Alt -
Insert the pipe operatorCtrl Shift MShift Cmd MCtrl Shift M
Show help for the function at the cursorF1F1F1
Show source code for the function at the cursorF2F2F2
Find usages for a symbol at the cursorCtrl Alt UOption Cmd UCtrl Alt U
Completions and views
Attempt completionTabTabTab
Navigate completion candidatesUp ArrowUp ArrowUp Arrow
Accept the selected completionEnterEnterEnter
Dismiss the completion popupEscapeEscapeEscape
Move focus to the Source EditorCtrl 1Ctrl 1Ctrl 1
Zoom the Source EditorCtrl Shift 1Ctrl Shift 1Ctrl Shift 1
Move focus to the ConsoleCtrl 2Ctrl 2Ctrl 2
Zoom the ConsoleCtrl Shift 2Ctrl Shift 2Ctrl Shift 2
Move focus to HelpCtrl 3Ctrl 3Ctrl 3
Zoom HelpCtrl Shift 3Ctrl Shift 3Ctrl Shift 3
Move focus to the TerminalAlt Shift MOption Shift MAlt Shift M
Show HistoryCtrl 4Ctrl 4Ctrl 4
Zoom HistoryCtrl Shift 4Ctrl Shift 4Ctrl Shift 4
Show FilesCtrl 5Ctrl 5Ctrl 5
Zoom FilesCtrl Shift 5Ctrl Shift 5Ctrl Shift 5
Show PlotsCtrl 6Ctrl 6Ctrl 6
Zoom PlotsCtrl Shift 6Ctrl Shift 6Ctrl Shift 6
Show PackagesCtrl 7Ctrl 7Ctrl 7
Zoom PackagesCtrl Shift 7Ctrl Shift 7Ctrl Shift 7
Show EnvironmentCtrl 8Ctrl 8Ctrl 8
Zoom EnvironmentCtrl Shift 8Ctrl Shift 8Ctrl Shift 8
Show ViewerCtrl 9Ctrl 9Ctrl 9
Zoom ViewerCtrl Shift 9Ctrl Shift 9Ctrl Shift 9
Show Git or SVNCtrl F1Cmd F1Ctrl F1
Zoom Git or SVNCtrl Shift F1Ctrl Shift F1Ctrl Shift F1
Show BuildCtrl F2Cmd F2Ctrl F2
Zoom BuildCtrl Shift F2Ctrl Shift F2Ctrl Shift F2
Show ConnectionsCtrl F5Ctrl F5Ctrl F5
Zoom ConnectionsCtrl Shift F5Ctrl Shift F5Ctrl Shift F5
Zoom TutorialCtrl Shift F6Ctrl Shift F6Ctrl Shift F6
Show Find in Files resultsCtrl F6Cmd F6Ctrl F6
Sync the editor and PDF previewCtrl F8Cmd F8Ctrl F8
Zoom the left columnCtrl Alt Shift F12Ctrl Option Shift F12Ctrl Alt Shift F12
Zoom the right columnCtrl Alt Shift F11Ctrl Option Shift F11Ctrl Alt Shift F11
Show all panesCtrl Alt Shift 0Ctrl Alt 0Ctrl Alt Shift 0
Add a source columnCtrl F7Cmd F7Ctrl F7
Open global optionsNot documentedCmd ,Not documented
Open project optionsNot documentedShift Cmd ,Not documented
Help, build, and debug
Show the keyboard shortcut referenceAlt Shift KOption Shift KAlt Shift K
Search R HelpCtrl Alt F1Ctrl Option F1Ctrl Alt F1
Find in a Help topicCtrl FCmd FCtrl F
Open the previous Help topicShift Alt F2Option Shift F2Shift Alt F2
Open the next Help topicShift Alt F3Option Shift F3Shift Alt F3
Install and restartCtrl Shift BShift Cmd BCtrl Shift B
Load all development toolsCtrl Shift LShift Cmd LCtrl Shift L
Test a package on desktopCtrl Shift TShift Cmd TCtrl Shift T
Test a package on the webCtrl Alt F7Option Cmd F7Ctrl Alt F7
Check a packageCtrl Shift EShift Cmd ECtrl Shift E
Document a packageCtrl Shift DShift Cmd DCtrl Shift D
Toggle a breakpointShift F9Shift F9Shift F9
Execute the next lineF10F10F10
Step into a functionShift F4Shift F4Shift F4
Finish a function or loopShift F7Shift F7Shift F7
Continue debuggingShift F5Shift F5Shift F5
Stop debuggingShift F8Shift F8Shift F8
Plots, Git, sessions, and terminal
Show the previous plotCtrl Alt F11Option Cmd F11Ctrl Alt F11
Show the next plotCtrl Alt F12Option Cmd F12Ctrl Alt F12
Diff the active source documentCtrl Alt DCtrl Option DCtrl Alt D
Commit changesCtrl Alt MCtrl Option MCtrl Alt M
Scroll the diff viewCtrl UpCtrl UpCtrl Up
Stage or unstage in GitSpaceSpaceSpace
Stage or unstage and move to the next itemEnterEnterEnter
Quit the desktop sessionCtrl QCmd QCtrl Q
Restart the R sessionCtrl Shift F10Shift Cmd 0Ctrl Shift F10
Open a new terminalShift Alt ROption Shift RShift Alt R
Move focus to the terminalShift Alt MOption Shift MShift Alt M
Go to the previous terminalShift Alt F11Option Shift F11Shift Alt F11
Go to the next terminalShift Alt F12Option Shift F12Shift Alt F12
Main menu
Open the File menuAlt Shift FCtrl Option FAlt Shift F
Open the Edit menuAlt Shift ECtrl Option IAlt Shift E
Open the Code menuAlt Shift CCtrl Option CAlt Shift C
Open the View menuAlt Shift VCtrl Option VAlt Shift V
Open the Plots menuAlt Shift PCtrl Option PAlt Shift P
Open the Session menuAlt Shift SCtrl Option SAlt Shift S
Open the Build menuAlt Shift BCtrl Option BAlt Shift B
Open the Debug menuAlt Shift UCtrl Option UAlt Shift U
Open the Profile menuAlt Shift ICtrl Option OAlt Shift I
Open the Tools menuAlt Shift TCtrl Option TAlt Shift T
Open the Help menuAlt Shift HCtrl Option HAlt Shift H

Build a sheet for the work you actually do

A useful cheat sheet is smaller than the reference it came from. Pick the apps that share your desk, keep the platform you are using, and remove groups that belong to a job you do not do. A focused page has a chance of staying beside the keyboard instead of becoming another document you never open.

If you move between a terminal, an editor, and a browser, make one sheet for that loop. If you are learning one app, select only its groups and give yourself a page you can glance at without hunting through unrelated commands.

Choose the platform before you print

Windows, macOS, and Linux often share the action but change the modifier. Keep all platforms when the sheet is for a shared desk or a team. Choose one platform when you want a quieter page and know which keyboard will be in front of you.

Some applications also use terminal settings, editor modes, or custom keymaps. The sheet keeps the documented default rows from this reference. It does not rewrite them for a personal binding file.

Read the paper as a task list

Each app keeps its own name and each group keeps its task heading. That matters when several apps share keys such as Ctrl+P or Cmd+K. The action beside the keys tells you which app context gives the combination its meaning.

The live preview is the document that prints. If you remove an app, platform, or group, the count and the paper change with it. Groups that have no shortcut for the selected platform disappear from the sheet rather than leaving an empty heading behind.

What this sheet does not promise

This generator does not discover shortcuts from your installed apps, inspect custom bindings, or turn undocumented actions into guesses. It prints the rows in the stack127 keyboard reference for the choices you made. For a full app page, including notes about modes and sequences, use the keyboard shortcuts directory.

Keep the first version deliberately short

Start with the keys that remove a repeated interruption today. When those become ordinary, make a second sheet or add another group. The point is to put the next useful action near your hand, not to turn every documented shortcut into homework.

Your selections stay in this browser while you build the sheet. Printing uses the browser's own print dialog, so the final paper follows the page you can see here.