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?
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?
Do Control+A to select all. Then go under the "source" menu tab and select "correct indentation".
Source: currently have Eclipse open.
Warning:
Bad indentation (2 spaces)
Solution:
CTRL A (select all code in current file)
Source -> Convert tabs to space-tabs [In main menu bar]
Write 2
You have to change the tab length that PyDev uses at:
window > preferences > pydev > editor > tab length