To make rubymine select the corresponding parenthesis line

Asked 2 years ago, Updated 2 years ago, 138 views

How do I make rubymine select the block that corresponds to the position where the cursor is located?

For example,

def hoge
  if huga
  else
  end
end

At some point, if there is a cursor in line 1 or 5, select all of them. If you have a cursor in the second to fourth lines, you can select only this range.

rubymine

2022-09-30 21:22

1 Answers

I don't think I can do it at once, so

Move Caret to Code Block Start with Selection (⌥ ) [[) and
Extend Selection(⌥↑)/Shrink Selection(⌥↓)

I think you will use (or macrosize) in combination.


2022-09-30 21:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.