Comment on Replit's in-browser coding AIparentComments−WithinReason3yYou can just use the prompt "The above code does the following explained in English" in a comment to prompt CoPilot to explain its code. You could probably also engineer a prompt to translate code between languages.−lgas3yHave you tried "This ruby code does the same thing as the following python code" in a comment?−ksaj3yI wish I thought of that when I had the co-pilot trial. If that works, I might have had a different opinion of my experience with it.−WithinReason3yI actually did something similar and it worked IIRC. It was python to C or the reverse.
Comments
You can just use the prompt "The above code does the following explained in English" in a comment to prompt CoPilot to explain its code. You could probably also engineer a prompt to translate code between languages.
Have you tried "This ruby code does the same thing as the following python code" in a comment?
I wish I thought of that when I had the co-pilot trial. If that works, I might have had a different opinion of my experience with it.
I actually did something similar and it worked IIRC. It was python to C or the reverse.