Does RubyMine have TextMate-style multi-line editing?

Is there a shortcut for editing multiple lines in RubyMine (Windows), how can you do this with TextMate? I saw it in TextMate, where you can select several lines and press key code, and then start typing. All the text you enter will be displayed at the end of all highlighted lines. I would also like to do this with RubyMine.

Thanks!

+6
source share
2 answers

Yes, this feature is called Column Mode and can be enabled through the Modify menu or the keyboard shortcut.

+8
source

RubyMine version 6.3 and later has real multi-line editing. Simultaneously edited text areas do not have to be vertically adjacent and vertically aligned (since they must use the column selection mode).

Short,

  • option-click (on Mac, Alt-click on Windows or Linux) to create additional carriages, edit as usual, then press escape to return to one carriage
  • select text and control-G (on Mac; alt-J on Linux and Windows) to find the next occurrence of that text and add a caret
  • There are also editor commands to add cutters (Clone Caret Below, Clone Caret Above), which are not connected by default, but you can snap to the keys of your choice.

Read more here: Whats Mining: Multiple Cursors and Choices

(Column selection mode still works fine for areas of text that are vertically offset and aligned.)

+6
source

Source: https://habr.com/ru/post/888439/


All Articles