Reputation: 35364
Currently we can move a line up/down by alt
+shift
+UP
and alt
+shift
+DOWN
Though, when we have moved the line to target position and want to indent it, we have to go to the beginning of the line to tab
/shift-tab
.
I wonder if we can do that right away at caret position i.e. without having to move to the begin of line.
p.s.
My google results as this page put ctrl
+alt
+I
not work for me.
Upvotes: 7
Views: 36740
Reputation: 417
By default, the tab key execute action "indent Selection",so you must select some text. there is a keymap named "indent Line or Selection", you can use tab as its shortcut.then you dont need to select text (my pycharm version:2020.1.3)
Upvotes: 1