karl_TUM
karl_TUM

Reputation: 5929

how to indent the code block in Python IDE: Spyder?

Is there any shortcut key in Spyder python IDE to indent the code block? For example, Like ctr+[ in Matlab, I want to indent the code block together.

Upvotes: 16

Views: 87913

Answers (2)

VDV
VDV

Reputation: 904

Select your code and press Tab for indent and Shift+Tab to un-indent.

or go to Edit -> Indent/Unindent

Edit section also contains some other tools for editing your code.

Upvotes: 41

Deepesh ranjan
Deepesh ranjan

Reputation: 99

Spyder 4 select the lines and then press TAB or CTRL+] For indent and shift+TAB or CTRL+] for un-indent

Upvotes: 0

Related Questions