Ask coding questions

← Back to all posts
Why does auto-format indent my code using two tabs instead of just a single tab?
rcwhiteley (9)

When I press the auto-format button repl adds an unnecessary additional tab to each line in the statement. Is this the proper formatting for python?

Answered by Highwayman (1483) [earned 5 cycles]
View Answer
Highwayman (1483)

That’s because there are settings the specify how many tabs or spaces you want used, but the lowest one is 2.

rcwhiteley (9)

@Highwayman oh yes, i can see that. Strange that that is the setting, i couldn't find anything online referring to Python code using two tabs to indent.

Highwayman (1483)

@rcwhiteley I’m pretty sure that as long as the indent is uniform it can be anything you want.


is there a way to undo this because now i have literally 12 tabs on one line