Make tab increase line indent instead of adding spaces

Is it possible to make tab increase the current line indent level by one?  The default behaviour depends on where the cursor is and what you have selected.  If your cursor is in the middle of a line PyCharm adds a space, but if your cursor is at the beginning of a line it increases the indent level.  I'd like to make tab only change the indent of lines and never add characters at the cursor.

WingIDE can be set up like this.  I can't remember if it's the default.

3 comments

Hello Peter,

I don't think this is currently possible. You're welcome to file a feature

request at http://youtrack.jetbrains.net/

Is it possible to make tab increase the current line indent level by

one?  The default behaviour depends on where the cursor is and what

you have selected.  If your cursor is in the middle of a line PyCharm

adds a space, but if your cursor is at the beginning of a line it

increases the indent level.  I'd like to make tab only change the

indent of lines and never add characters at the cursor.

WingIDE can be set up like this.  I can't remember if it's the

default.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

There is a keybinding available called "emacs tab", and I'm not sure it has the behaviour you're looking for, but try it out.

0

After looking at this some more it turns out the problem is that increase indent is only applied to selected text.  If no text is selected it isn't applied at all.  This is different to how decrease indent works.

I've created a feature request at http://youtrack.jetbrains.net/issue/PY-2145

0

Please sign in to leave a comment.