indenting more than once

If i select a chunk of code and indent/unindent, the code gets deselected.
Of course, this means if I want to unindent/indent by multiple indents/unindents (usually happens after pasting some code into a view),
I have to repeat the process of selecting the code multiple times.

Is there a way to specifcy that a piece of code should be indented/unindented N levels. Or a way of keeping the text selected after indenting/unindenting (so I can just repeat the indent/unindent shortcut).

Thanks,
Robert

5 comments
Comment actions Permalink

Hi,

how do you indent/unindent a code?  I've tried tab and it preserves the selection, so it is possible to indent it several times.

Regards, Oleg.

0
Comment actions Permalink

Yes, i'm selecting a block of text and hitting tab. Here's a video with keyboard input captured. https://www.youtube.com/watch?v=0pRMmUHTzkQ

0
Comment actions Permalink

Hi,

what OS, jdk version, and keymap?  Also are you using VIM-plugin?

Regards, Oleg.

0
Comment actions Permalink

OSX: 10.9.5

$java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

keymap: emacs

no VIM plugin

0
Comment actions Permalink

Hi,

I've just tried the latest RubyMine with emacs keymap and I see the following behavior:
1. no selection: tab works as "Emacs tab" indents (if needed) and moves cursor to the beginning of text on the current line
2. multi line selection: tab just shift indent and keep selection :(

What version of RubyMine are you using?  Is the keymap modified?

Regards, Oleg.

0

Please sign in to leave a comment.