Skip to content
← Back to Community
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?

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
BogdanBodomoiu
Profile icon
LeakyLobster
Comments
hotnewtop
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 !!

Profile icon
JoshuaGottfried

All of the comments are helpful but they are forgetting one thing... Never copy paste a lot of code

Profile icon
Coder100

haha lol but a beginner sometimes has to

@JoshuaGottfried

Profile icon
PattanAhmed

@LeakyLobster
Hi,
Can you link your code here by editing your question and adding one of the Repls that is throwing this error?.
So that we can look into your problem more realistic than our illusionary minds.
Hope this helps
Please mark my answer if this helps.

Profile icon
Scoder12

Try pressing control+a, then tab, then shift tab.

Profile icon
SushiPython

Can you link the repl?