Search code examples
visual-studio-coderstudio

Is there an equivalent shortcut in RStudio of the Ctrl + D command in VS Code?


The Command + D or Ctrl + D (in Windows) keybinding in VS Code allows you to add the next occurrence of a selected portion of code to your current selection.

Is there an equivalent in RStudio?


Solution

  • There isn't an equivalent shortcut, but you can get cursors on all occurrences by pressing Cmd/Ctrl F, then selecting "All" matches:

    all matches