Eclipse Indent Bad Warning

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

How to set the indent that I want this warning to disappear?

+8
python eclipse warnings
source share
3 answers

You must change the length of the tabs that PyDev uses at:

window> settings> pydev> editor> tab length

+13
source share

Do Control + A to select everything. Then go to the "source" menu and select "correct indentation".

Source: Eclipse is currently open.

+6
source share

Attention:

Bad indentation (2 spaces)

Decision:

  • CTRL A (select all code in current file)

  • Source → Convert tabs to spaces . [In the main menu bar]

  • Write 2

0
source share

All Articles