Ask coding questions

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

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 [earned 5 cycles]
View Answer
Voters
vansh2101
Comments
hotnewtop
VulcanWM

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

vansh2101

@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

That’s not possible then @vansh2101