Skip to content

Multiple Cursors

Alistair McKinnell edited this page Sep 19, 2016 · 9 revisions

The amazing multiple cursor feature pioneered by Sublime now available in RubyMine.

The technique I use the most is placing multiple cursors by finding text matches.

Command Effect
ctrl+g works with a text selection (or without a selection on word boundaries surrounding the cursor)
shift+ctrl+g go backwards through the selected text
command+ctrl+g acts like ctrl+g for all matching text in the current file

Tip: select extra punctuation characters (like a dot or parentheses) to avoid partial matches.

###Alternative Techniques

Place multiple cursors one at a time using alt+left mouse click.

Create a vertical column of multiple cursors using alt followed by alt+down arrow.

###Bonus Points

Experiment with cutting and pasting combined with multiple cursors.

Clone this wiki locally