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
GitHub Copilot
Re: GitHub Copilot
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
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
The Netherlands
robert@xsharp.eu
-
- Posts: 2
- Joined: Mon Aug 26, 2024 4:10 pm
- Location: Deutschland
Re: GitHub Copilot
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
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