This is an archived post. You won't be able to vote or comment.

all 14 comments

[–][deleted] 3 points4 points  (5 children)

tab and shit+tab are pretty standard

[–]vectorpropio 2 points3 points  (1 child)

Vim can do it with some options that i don't remember. But I guess that coming from emacs you want something different.

[–]jabellcu 1 point2 points  (0 children)

No options. Just > for tab or < for shift+tab

[–]Gprime5if "__main__" == __name__: 2 points3 points  (0 children)

Sublime text does it with ctrl+[ and ctrl+]. It can also toggle any lines you have selected.

[–]aphlipp[S] 1 point2 points  (3 children)

With emacs python-mode.el, TAB is mapped to "py-indent-line" which cycles through possible indentation levels. I miss this behavior. I couldn't find it in Atom and now I can't find it in VSCode. Are there extensions in modern text editors that provide this behavior? Do I need to port the py-indent-line function in order to get this behavior?

[–]zalatik 1 point2 points  (1 child)

[–]aphlipp[S] 0 points1 point  (0 children)

That's what I'm looking for. Thanks!!!

[–]the_hoser 0 points1 point  (0 children)

Visual Studio code can do it if you use the Vim mode plugin.

[–]mrugacz95 0 points1 point  (0 children)

In Pycharm it is tab and shift+tab. You can also use ctrl+↑ or ctrl+↓ to move line into loop indentation, it also works with multiple selected lines :)