# RubyMine keyboard shortcuts (Mac)

> The most used RubyMine shortcuts on Mac: Find Action (⇧⌘A), Recent files (⌘E), Line comment (⌘/), Context actions / quick-fix (⌥↩), Go to declaration or usages (⌘B). This page lists all 48, from the official documentation.

- Source: [JetBrains · www.jetbrains.com](https://www.jetbrains.com/help/ruby/reference-keymap-mac-default.html), retrieved November 19, 2026 (2026-11-19)
- Page: https://www.modandkey.com/rubymine-keyboard-shortcuts/mac
- Also: [Windows](https://www.modandkey.com/md/rubymine-keyboard-shortcuts.md), [Linux](https://www.modandkey.com/md/rubymine-keyboard-shortcuts/linux.md)
- Unofficial reference. Not affiliated with JetBrains.

## Search & general

| Command | Shortcut |
|---|---|
| Find Action | ⇧⌘A |
| Settings | ⌘, |
| Find in file | ⌘F |
| Replace in file | ⌘R |
| Find in files | ⇧⌘F |
| Go to file | ⇧⌘O |
| Recent files | ⌘E |
| File structure | ⌘F12 |

## Editing

| Command | Shortcut |
|---|---|
| Undo | ⌘Z |
| Redo | ⇧⌘Z |
| Save all | ⌘S |
| Duplicate line or selection | ⌘D |
| Delete line | ⌘⌫ |
| Move line up | ⌥⇧↑ |
| Move line down | ⌥⇧↓ |
| Line comment | ⌘/ |
| Block comment | ⌥⌘/ |
| Extend selection | ⌥↑ |
| Shrink selection | ⌥↓ |
| Add next occurrence to selection | ⌃G |

## Code assistance

| Command | Shortcut |
|---|---|
| Context actions / quick-fix | ⌥↩ |
| Basic completion | ⌃Space |
| Complete current statement | ⇧⌘↩ |
| Reformat code | ⌥⌘L |
| Parameter info | ⌘P |
| Quick documentation | F1 |
| Generate code | ⌘N |

## Navigation

| Command | Shortcut |
|---|---|
| Go to declaration or usages | ⌘B |
| Go to implementation | ⌥⌘B |
| Find usages | ⌥F7 |
| Navigate back | ⌘[ |
| Navigate forward | ⌘] |
| Go to line | ⌘L |
| Next highlighted error | F2 |
| Last edit location | ⇧⌘⌫ |

## Refactor, run & debug

| Command | Shortcut |
|---|---|
| Refactor this | ⌃T |
| Rename | ⇧F6 |
| Extract method | ⌥⌘M |
| Run | ⌃R |
| Debug | ⌃D |
| Step over | F8 |
| Step into | F7 |
| Toggle line breakpoint | ⌘F8 |

## VCS & tool windows

| Command | Shortcut |
|---|---|
| Commit | ⌘K |
| Push | ⇧⌘K |
| VCS operations popup | ⌃V |
| Project tool window | ⌘1 |
| Terminal tool window | ⌥F12 |
