Ask coding questions

← Back to all posts
how to change run button configuration?
vansh2101 (0)

hey, I have created a created a team in repl.it. so when I create a team Repl and hit the run button, it always runs the main.py. Is there a way so that the run buttons runs the file which is open in the editor??

Answered by VulcanWM (3097) [earned 5 cycles]
View Answer
Comments
hotnewtop
VulcanWM (3097)

Make a file called .replit
And in there enter:
run=“language filename”

vansh2101 (0)

@VulcanWM but then i will have to edit the filename each time i press the run button. i want that the filename should dynamically change itself to the file which is opened currently in my editor.

VulcanWM (3097)

That’s not possible then @vansh2101