Feature request #19698

Improve python indentation character support

Added by Regis Haubourg over 5 years ago.

Status:Open
Priority:Low
Assignee:-
Category:PyQGIS Console
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:27523

Description

Currently we have various places where python code can be typed (project macros, layer actions, expression function panel, python console)
One of the most common caveats is mixing the use of whitespaces and tabs which makes the python interpreter fail.

That would be neat to apply an autoconvert of tab to whitespaces feature, or like in text editors, offer an option to choose which indentation character is prefered. This is called "Untabify or Tabify" in Atom editor for instance.

Also available in: Atom PDF