Adding spaces in multiple lines simultaneously - in Pycharm

Highlight/ select the lines you want indented, then press TAB as often as needed until they reach the proper indent level.

You can remove spaces with SHIFT TAB.

You can also use CTRL+ALT+I to auto-indent the selection.


Select the block that you want to indent then press TAB. It will work.


To auto indent all the codes in Pycharn just press

CTR + A to select all the text files and then press

CTRL+ALT+I