xsharp.eu • GitHub Copilot
Page 1 of 1

GitHub Copilot

Posted: Tue Aug 06, 2024 10:40 am
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

Re: GitHub Copilot

Posted: Tue Aug 06, 2024 11:24 am
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

Re: GitHub Copilot

Posted: Mon Aug 26, 2024 4:23 pm
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