Keymap: Indent not working after keyboard shortcut change?

Hello, I'm coming from Sublime Text and I wanted to be able to indent/unindent a line like ST.
I changed the shortcuts to match:
Screen Shot 2013-06-06 at 11.28.47 AM.png
Command + ] => Indent
Command + [ => Unindent

Unindent works as expected but Indent no longer works.

Oddly I can still use the original shortcuts of tab and shift + tab.

The main reason I changed it was because I wanted to indent a line without the cursor needing to be at the beginning of the line.

FWIW, I'm on a Mac with OS 10.8.3
Thanks,
Rick

2 comments

Hi there,

Currently it is not possible: unindent will work on whole line/selection regardless of cursor position in the line .. while indent will insert TAB character when indenting in the middle of the line (i.e. after non-whitespace character)

http://youtrack.jetbrains.com/issue/IDEA-53093

Oddly I can still use the original shortcuts of tab and shift + tab

Because you have 2 shortcuts assigned for "Unindent selection" action as clearly shown on your screenshot.

Unindent works as expected but Indent no longer works.

Tab key can be assigned to more than one action. For example, on Default keymap it is assigned to both "Tab" and "Indent Selection" actions (well ... actually more than that -- but those two are important ones here).

You can use "Find action by shortcut" functionality to find all actions that have specific shortcuts assigned to them (the button next to search field, before "bin" icon -- top right of the screen)

0

I see, I have to select the text on the line to get indent to work but unindent works without selected text.

This is odd to me. Why is it called Unindent Selection if I don't need to have text actually selected?

Every editor I've used allows me to indent a line without selecting text. It's a behavior I'm used to.

I'll add my vote to the Issuetracker.

Thanks,
Rick

0

Please sign in to leave a comment.