Search code examples
pycharmhotkeys

PyCharm hotkey to indent/un-indent a line at caret?


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.


Solution

  • As @cdbajorin answered, it's just one more step - selecting a character to indent whole line i.e. no-selection will indent text on the right only.

    If you select a single character on the line, tab/shift tab will do the