Formatting isn't using my preferred indent size

Problem description:
I am an Explorer. When I format map.py, It formats with 4-space indent despite the settings showing that my preferred indent is 2-spaces.

Expected behavior:
Formats with 2-space indent instead of 4-space.

Actual behavior:
Formats with 4-space indent.

Steps to reproduce:
Click the Format icon in map.py

Bug appears at this link:
https://replit.com/@element1010/Delivery

Browser: Google Chrome
OS: IDK
Device (Android, iOS, n/a leave blank): Windows 10
Plan (Free, Hacker, Pro Plan): Free plan

I believe this is a new feature. Actually, PEP 8 recommended 4 spaces not 2. Maybe Replit updated their system.

2 Likes

yeah ik, @QwertyQwerty88 told me. I’m not necessarily a big fan of it and prefer 2-space indent.

3 Likes

Disobeying user settings is an interesting feature. I hope this becomes less contradictory in the future. Two spaces is better when typing by hand (like when writing a code on Ask), but with Tab I’m not sure it ultimately matters. I’d still lean towards two space indents.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.