( 🕙 5 min )
Copilot Chat can understand numerous natural languages alongside programming languages.
-
Test Copilots Multilingual features.
For this exercise we don't require any pre-set files from the Repo.
-
Choose any language and instruct Copilot Chat to create code. For example,
-
Tell Copilot Chat in...
-
Spanish:
Importar todas las bibliotecas necesarias para FileStreaming
-
German:
Importiere alle erforderlichen Bibliotheken für FileStreaming
-
-
Sample Output
Note:
- Without specifying a programming language and with no open code file as a reference, Copilot Chat will pick a language.
- Copilot Chat might continue to use the language used in the request for its generated code
-
-
Example - Java to Python
-
Open the
Validator.java
class in your IDE (Tab) and ask in Copilot Chat,translate this class to Python
-
Sample output
-
-
Try the exercise again with different 'target' languages (eg.: Go, Lisp, etc.)
- Explore how Copilot Chat covers multiple languages.