Next: , Previous: , Up: Indenting   [Index]


8.10.2 Indenting Regions

Regions are even more difficult to indent. How do you safely indent a region Python code when block indentation determines program flow? The answer is — you don’t.

There are two types of region indentation commands:

TAB

Indents a line or region as per the major mode

C-M-\

Indents using major mode’s region indent command

C-x TAB

Rigidly indents