indentation – How do I unindent blocks of code in Python?

indentation – How do I unindent blocks of code in Python?

It is Ctrl + [ in IDLE. You can change it to your favorite Shift + Tab in Options -> Configure IDLE – Keys. You need to restart the shell after that.

You can unindent using following keys:

In Python IDLE/Spyder: Ctrl + [
In Eclipse: Shift + Tab
In Visual Studio: Shift+ Tab
In PyCharm: Shift + Tab
In Jupyter Notebook: Shift + Tab

indentation – How do I unindent blocks of code in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *