Feature request #7640

Make AutoIndentation possible in python console

Added by vinayan Parameswaran about 4 years ago. Updated almost 3 years ago.

Status:Open Start Date:04/18/2013
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Python plugins and bindings
Target version:Future Release - Lower Priority
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

It would be great to have auto indentation after ':' signs.

For example, the below snippet would fail.

lst = ['a','b','c','d']
for i in lst:
print i
  File "<input>", line 2
    print i
        ^
IndentationError: expected an indented block

To make it work, we need to add required spaces to indent the lines after the ':' sign

lst = ['a','b','c','d']
for i in lst:
    print i
a
b
c
d

History

Updated by J├╝rgen Fischer almost 3 years ago

  • Target version changed from Version 2.0.0 to Future Release - Lower Priority

Also available in: Atom