← Back to Community
Why does auto-format indent my code using two tabs instead of just a single tab?
Profile icon
rcwhiteley

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?

Before pressing auto-format
After pressing auto-format

Answered by Highwayman [earned 5 cycles]
View Answer
Voters
Profile icon
WBGrok
Profile icon
sylashur
Profile icon
rcwhiteley
Comments
hotnewtop
Profile icon
Highwayman

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

Profile icon
rcwhiteley

@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.

Profile icon
Highwayman

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

Profile icon
4DVENTURE

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