Spyder Python indentation

Ajay Sunarthi picture Ajay Sunarthi · Nov 6, 2014 · Viewed 23.1k times · Source

I am using spyder IDE for python coding. I copied the code from some source,it works fine. But when I make edits in it indentation error occurs. There is always some mistake in the alignment of my edit and the other part of code. Code is quite large I can't re indent it.

Answer

cpc333 picture cpc333 · Sep 2, 2016

In Spyder v3.0.0, go to Source --> Fix Indentation. That worked for me.