简体   繁体   English

如何在 Python IDE: Spyder 中缩进代码块?

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

Is there any shortcut key in Spyder python IDE to indent the code block? Spyder python IDE中有没有快捷键可以缩进代码块? For example, Like ctr+[ in Matlab, I want to indent the code block together.例如,像Matlab中的ctr+[ ,我想将代码块缩进在一起。

Select your code and press Tab for indent and Shift + Tab to un-indent.选择您的代码并按Tab缩进,按Shift + Tab取消缩进。

or go to Edit -> Indent/Unindent或转到编辑 -> 缩进/取消缩进

Edit section also contains some other tools for editing your code.编辑部分还包含一些其他用于编辑代码的工具。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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