The documentation at https://support.rstudio.com/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts says that custom keybindings are stored at ~/.R/rstudio/keybindings/rstudio_commands.json
and ~/.R/rstudio/keybindings/editor_commands.json
.
But under Windows both the path and the filenames are wrong.
- The
.R/rstudio
directory is located at~/Documents/.R/rstudio
, not~/.R/rstudio
- The keybindings files are not located there, but in
~/AppData/Roaming/RStudio/keybindings
- The keybindings filenames have changed. They are
editor_bindings.json
andrstudio_bindings.json
, noteditor_commands.json
andrstudio_commands.json
- So the actual paths for these files are
~/AppData/Roaming/RStudio/keybindings/rstudio_bindings.json
and~/AppData/Roaming/RStudio/keybindings/editor_bindings.json
.
Cross-reference: see https://forum.posit.co/t/has-rstudio-keybindings-location-changed/17054