GitHub Copilot

This forum is meant for anything you would like to share with other visitors
Post Reply
User avatar
ArneOrtlinghaus
Posts: 412
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

GitHub Copilot

Post by ArneOrtlinghaus »

We are testing the use of GitHub Copilot for X# in Visual Studio.
The Copilot makes suggestions in the editor when inserting new lines.
Most often the suggested code isn't very useable after one week that the copilot has watched me writing code. But at least it is normally respecting the X# syntax as I am writing code. Sometimes there are really astonishing results. For example I rewrote some test code for loading the code dynamically after having tested with fix references
I inserted the statement
var oassembly := System.Reflection.Assembly.LoadFrom("C:\daten\CRUFLBarCodeWizFonts.DataMatrix.dll")
The copilot suggested then as the next line:
type tobject := oassembly:CreateInstance("CRUFLDataMatrix.BCWDataMatrix")
This is a construction that did not exist in my code and it was already very near to what finally worked:
var obarcode := oassembly:CreateInstance("CRUFLDataMatrix.BCWDataMatrix")

Although I am a bit doubtful about the effectiveness, I am curious what will happen during the next months.
Arne
User avatar
robert
Posts: 4497
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: GitHub Copilot

Post by robert »

Arne,
I plan to show Copilot in action in Munich. My experience is about the same as yours.
It slowly starts to understand X# and comes with suggestions that are often almost correct.
At least is saves some typing.
Also it helps to document code or to explain code that others wrote.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Simult4neous
Posts: 2
Joined: Mon Aug 26, 2024 4:10 pm
Location: Deutschland

Re: GitHub Copilot

Post by Simult4neous »

Hi Arne,
I also share your experinece when it comes to the suggested code. I am hoping though that it will improve over time, as it is in learning mode.
Best,
Uwe
Post Reply