简体   繁体   中英

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.

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.

Spyder 4 选择行,然后按TAB 或 CTRL+]用于缩进和shift+TAB 或 CTRL+]用于取消缩进

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM