Skip to content

Instantly share code, notes, and snippets.

@alekrutkowski
Last active October 27, 2022 15:04
Show Gist options
  • Save alekrutkowski/2b3b41e812ea5413d7cc61d4865861fc to your computer and use it in GitHub Desktop.
Save alekrutkowski/2b3b41e812ea5413d7cc61d4865861fc to your computer and use it in GitHub Desktop.
RStudio key bindings / shortcuts. See the entry for "commentUncomment" – multiple bindings possible. To find out where to save, see section "Saving and Loading" in https://support.rstudio.com/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts-in-the-RStudio-IDE#:~:text=Saving,Kevin
{
"goToFileFunction": "Ctrl+P",
"insertPipeOperator": "Ctrl+Shift+M",
"restartR": "Ctrl+R",
"activateTerminal": "Ctrl+3",
"browseAddins": "",
"closeProject": "",
"closeTerminal": "",
"sendTerminalToEditor": "",
"newTerminal": "Ctrl+T",
"nextTerminal": "Ctrl+6",
"previousTerminal": "Ctrl+5",
"clearPlots": "",
"activateVcs": "Ctrl+7",
"switchToTab": "",
"lastTab": "Ctrl+9",
"nextTab": "Ctrl+M",
"layoutZoomVcs": "Ctrl+Shift+4",
"layoutZoomCurrentPane": "Ctrl+0",
"layoutZoomHistory": "",
"layoutZoomPlots": "Ctrl+Shift+5",
"loadWorkspace": "",
"reloadPlumberAPI": "",
"toggleToolbar": "Ctrl+J",
"toggleTabKeyMovesFocus": "",
"addCursorBelow": "Ctrl+Alt+Down",
"addCursorAbove": "Ctrl+Alt+Up",
"yankAfterCursor": "",
"yankBeforeCursor": "",
"executeCodeWithoutMovingCursor": "Alt+Enter",
"previousTab": "Ctrl+N",
"firstTab": "Ctrl+Shift+1",
"openProjectInNewWindow": "Shift+Cmd+O",
"closeAllTerminals": "Alt+Shift+S",
"activatePackages": "",
"layoutZoomSource": "",
"activateConsolePane": "Ctrl+2",
"activateConsole": "",
"activateHelp": "",
"activateHistory": "",
"buildAll": "Ctrl+Shift+I",
"activateFiles": "Ctrl+E",
"commentUncomment": ["Ctrl+Shift+C", "Ctrl+/"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment