Intra Intra - 20 days ago 9
Python Question

Eclipse bad indentation warning

I am using PyDev perspective. I get a "bad indentation" warning in python files. I am using two spaces for indent and eclipse seems to want me to use 4.

How to set the indentation I want so this warning goes away?

Answer

You have to change the tab length that PyDev uses at:

window > preferences > pydev > editor > tab length

Comments