i’ve made a code. Then I made a new code under a different file and when i run the new code it’s running the first code. How do I make it run my new code and other new codes.
Hey @AlbertR8, welcome to the forums!
Just click the ⋮ next to “Files” then click “Show hidden files”. Next click on the .replit
file and finally you can change the entrypoint
to whatever file you want to run.
You can also change the second line from run="run_command_for_lang main.file_type"
to run="run_command_for_lang fileIWantToRun.file_type"
, though it won’t have an effect for languages with interpreters as shown in the comment on line 1.
Also see the docs on how to configure a Repl: https://docs.replit.com/programming-ide/configuring-repl
Hope this helps!
If this post answered your question, you can mark this as a Solution.
thank you very much!!
Just a note, you could also use this, which runs the most recently edited file:
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.