Forum Archive

New feature request - code formatter

Avisual68

Any chance of this in the next version, would be nice to reformat code when pasting into editor

ccc

Pasting code into the Pythonista editor often causes those pesky 'Unexpected indent' error messages. If this is the problem that you are seeing, you might check out the tabs to spaces utility at:

http://omz-software.com/pythonista/forums/discussion/273/simple-utility-script-to-convert-tabs-to-spaces.

If you put this in your Actions menu and run it while your pasted code is open in the Pythonista editor, it will often get rid of the 'Unexpected indent' errors. Not a full reformatter but it might get your code to run.

ccc

Also check out this cool tip... http://omz-software.com/pythonista/forums/discussion/507/tip-mixing-spaces-with-tabs

Avisual68

Thanks have added it to collection. second tip was realy helpful