DEV Community

Abhay Prajapati
Abhay Prajapati

Posted on

Use Github Copilot Labs to transalte code in other languages

Copilot Labs

Code Translations in VSCode

What is Code Translations?
Making a environment where solutions matter's and not just the language.
Enter fullscreen mode Exit fullscreen mode

How GitHub Copilot Labs helps you to translate your code to other languages?

Github Copilot Labs is a platform that helps you to translate your code to other languages, start with installing the extension and then you can start translating your code.

Start with installing the Copilot Labs

Image description

1. Install the extension
2. Go to your folder and open the file you want to translate, and then click on the extension icon.
Enter fullscreen mode Exit fullscreen mode

Image description

3. Here you will find two buttons Explain and Translate, you can use them to explain your code and translate it to other languages.
4. Click on Explain to minimize it.
5. Click on Translate to start translating your code.
Enter fullscreen mode Exit fullscreen mode

Image description

6. Highlight the code you want to translate and click on the ASK COPILOT.
Enter fullscreen mode Exit fullscreen mode

Image description

Yeap, it works๐Ÿคฏ!

Share the translation with your friends and colleagues.

Connect with me on:

Twitter: @Abhayprajapati_

Github: @theAbhayprajapati

Check out API that I have builded.

Open Source Apple Store API

Latest comments (0)