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

66,441

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.

Share:
66,441

Related videos on Youtube

karl_TUM
Author by

karl_TUM

Deep learning beginner with Tensorflow!

Updated on July 06, 2021

Comments

  • karl_TUM
    karl_TUM almost 3 years

    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.

    • Cal Eliacheff
      Cal Eliacheff almost 8 years
      <tab> on selection ?
    • rajah9
      rajah9 almost 8 years
      I'm not familiar with Spyder in particular, but many IDEs will let you select all the lines you want to indent and then press tab; this will indent all of the select lines. Or use Shift-tab to un-indent. Here is a link to the documentation: pythonhosted.org/spyder/overview.html . It says that in the preferences dialogue box, one can find keyboard shortcuts.

Related