Intra Intra - 11 months ago 120
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 Source

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

window > preferences > pydev > editor > tab length