I have a Python
code with a mixture of 2 and 4 spacing. I would like to make it consistent. Is there any software that can
- automatically adjust to a consistent spacing
- ideally, it can adjust for a given range of lines, e.g., 1-300. So I can test the adjustment segment by segment
- Linux or Windows platform
An example of a code with mixed spacing
n = 2
m = 3
for i in range(n):
for j in range(m):
print(i, j)
for i in range(n + 1):
for j in range(m + 2):
print(i, j)