How do I get my main.py window back on replit?

I accidentally deleted my main.py window in my replit. How do I get it back?

Click on the main.py file in the sidebar or search it up in a new tab.

2 Likes

I deleted main.py but i don’t see what you mean in your answer. There is no “main.py” in the side bar. And what do you mean by 'search it in a new tab" ?

Welcome to Ask!
You can just add another main.py file to the root!
Click the Sidebar button on the top left,

and then press the New File button (looks like a paper with a plus on it),

Type main.py, press the enter-key and you should be set!

3 Likes

Did you delete the window or the file? If you deleted the file then @Spcfork’s answer should work.

1 Like

Thank you. it’s OK now, i deleted the file. It was the good solution…

2 Likes

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