Catalog / RubyMine IDE Shortcuts Cheatsheet

RubyMine IDE Shortcuts Cheatsheet

A comprehensive cheat sheet covering essential RubyMine shortcuts for efficient coding, navigation, and refactoring.

Basic Navigation & Editing

Navigation

Ctrl + N (macOS: ⌘ + O)

Go to Class

Ctrl + Shift + N (macOS: ⇧ + ⌘ + O)

Go to File

Ctrl + Shift + Alt + N (macOS: ⇧ + ⌥ + ⌘ + O)

Go to Symbol

Alt + Left/Right (macOS: ⌘ + Left/Right)

Navigate Back/Forward

Ctrl + E (macOS: ⌘ + E)

Recent Files

Ctrl + Shift + E (macOS: ⇧ + ⌘ + E)

Recent Locations

Editing

Ctrl + D (macOS: ⌘ + D)

Duplicate Line or Selection

Ctrl + Y (macOS: ⌘ + Delete)

Delete Line

Ctrl + Alt + L (macOS: ⌥ + ⌘ + L)

Reformat Code

Ctrl + / (macOS: ⌘ + /)

Comment/Uncomment Line

Shift + Enter

Start New Line

Ctrl + Shift + V (macOS: ⇧ + ⌘ + V)

Paste from History

Code Completion & Generation

Code Completion

Ctrl + Space

Basic Code Completion

Ctrl + Shift + Space

Smart Code Completion (Type-Matching)

Ctrl + Alt + Space

Class Name Completion

Ctrl + Shift + Enter

Complete Statement

Code Generation

Alt + Insert (macOS: ⌘ + N)

Generate Code (Getters, Setters, Constructors, etc.)

Ctrl + O (macOS: ⌘ + O)

Override Methods

Ctrl + I (macOS: ⌘ + I)

Implement Methods

Ctrl + Alt + T (macOS: ⌥ + ⌘ + T)

Surround With (if, while, try/catch, etc.)

Refactoring & Find Actions

Refactoring

Shift + F6

Rename

Ctrl + Alt + Shift + T (macOS: ⇧ + ⌥ + ⌘ + T)

Refactor This

Ctrl + Alt + V (macOS: ⌥ + ⌘ + V)

Introduce Variable

Ctrl + Alt + C (macOS: ⌥ + ⌘ + C)

Introduce Constant

Ctrl + Alt + F (macOS: ⌥ + ⌘ + F)

Introduce Field

Ctrl + Alt + P (macOS: ⌥ + ⌘ + P)

Introduce Parameter

Find Actions

Ctrl + F (macOS: ⌘ + F)

Find

Ctrl + Shift + F (macOS: ⇧ + ⌘ + F)

Find in Path

Ctrl + R (macOS: ⌘ + R)

Replace

Ctrl + Shift + R (macOS: ⇧ + ⌘ + R)

Replace in Path

Alt + F7

Find Usages

Debugging & VCS

Debugging

F9

Resume Program

Ctrl + F8 (macOS: ⌘ + F8)

Toggle Breakpoint

F8

Step Over

F7

Step Into

Shift + F7

Smart Step Into

Shift + F8

Step Out

Alt + F9

Run to Cursor

VCS

Ctrl + K (macOS: ⌘ + K)

Commit Changes

Ctrl + Shift + K (macOS: ⇧ + ⌘ + K)

Push Changes

Ctrl + T (macOS: ⌘ + T)

Update Project

Alt + 9 (macOS: ⌘ + 9)

Show Changes

Ctrl + Alt + Z (macOS: ⌥ + ⌘ + Z)

Revert