Skip to content
Repl.it broken
Profile icon
LeakyLobster

I copy pasted code from another IDE, and it threw inconsistent use of tabs and spaces (python), which is expected. However, I changed all the spaces to tabs, and I keep getting the error. Fix?

You are viewing a single comment. View All
Profile icon
Coder100

Hi!
This is a tab:

" "

This is a space:

" "

As you can see, they are hard to tell apart.

Anyways, in your case:
Hit Ctrl/Cmd+A
Hit Tab
Hit Shift+Tab
Basically the editor tabs everything and then untabs it again, so any tabs get converted to spaces.

The second option:
Hit Ctrl+F
Inside here:
image
paste

Click the triangle:
image
Inside the second input, put in 2 spaces or however many spaces your program needs.

Then click replace all.

Profile icon
CodingCactus

@Coder100
DONT DO shift + tab then tab!!!!!

Do tab then shift tab

Profile icon
Coder100
Profile icon
Coder100

guess I'm to javascript for ya

@CodingCactus

Profile icon
LeakyLobster

@Coder100
Beauty it worked

Profile icon
Coder100
Profile icon
PenguinLunatic

@Coder100
Thank you it helped me so much !!