You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
integrate with some GPT / LLLM engine to convert code X to F# code, useful e.g. for C# examples (most examples for .net are in C# not F#). This could provide ways to convert code from lang-x to lang-y, probably using LLM/GPT behind the scenes,
would be great to have an integration of this kind in ionide
after copying C# code (or javascript or python code) from a project, we could "paste as F# code"
example
// Create a canvasvarcanvas=new Canvas(16,16);// Draw some shapesfor(vari=0;i< canvas.Width;i++){// Cross
canvas.SetPixel(i, i, Color.White);
canvas.SetPixel(canvas.Width -i-1, i, Color.White);// Border
canvas.SetPixel(i,0, Color.Red);
canvas.SetPixel(0, i, Color.Green);
canvas.SetPixel(i, canvas.Height -1, Color.Blue);
canvas.SetPixel(canvas.Width -1, i, Color.Yellow);}// Render the canvas
AnsiConsole.Write(canvas);
gets converted to
// added as we paste from C#, most likely needed#nowarn"20"// Create a canvasletcanvas=new Canvas(16,16)// Draw some shapesfor i in0.. canvas.Width -1do// Cross
canvas.SetPixel(i, i, Color.White)
canvas.SetPixel(canvas.Width - i -1, i, Color.White)// Border
canvas.SetPixel(i,0, Color.Red)
canvas.SetPixel(0, i, Color.Green)
canvas.SetPixel(i, canvas.Height -1, Color.Blue)
canvas.SetPixel(canvas.Width -1, i, Color.Yellow)// Render the canvas
AnsiConsole.Write(canvas)
which is indeed equivalent
The text was updated successfully, but these errors were encountered:
jkone27
changed the title
Add Paste as F#, integrate with some GPT / LLLM engine to convert code X to F# code, useful e.g. for C# examples
Paste as F# feature
Jan 28, 2024
websites like:
https://codingfleet.com/code-converter/csharp/fsharp/
integrate with some GPT / LLLM engine to convert code X to F# code, useful e.g. for C# examples (most examples for .net are in C# not F#). This could provide ways to convert code from lang-x to lang-y, probably using LLM/GPT behind the scenes,
would be great to have an integration of this kind in ionide
after copying C# code (or javascript or python code) from a project, we could "paste as F# code"
example
gets converted to
which is indeed equivalent
The text was updated successfully, but these errors were encountered: