dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.85k stars 670 forks source link

Feature Request: C# REPL #1239

Open martinsuchan opened 7 years ago

martinsuchan commented 7 years ago

One feature I really miss in Visual Studio Code right now is the C# Interactive/REPL. It was added to full Visual Studio in late 2015 and it's highly useful for testing code snippets.

If this functionality is already provided by this addon, then I was not able to find it.

filipw commented 7 years ago

This could be integrated via the VS Code Terminal API. For example Ionide has a nice FSI integration.

It would be great if the C# extension bundled CSI.

filipw commented 7 years ago

Here is the Ionide experience

dz4va commented 6 years ago

Would love that

runxc1 commented 6 years ago

VS Code is nice for testing something small out. Would love to see something like what you get with LinqPad with a visualizer for many datatypes as well.

hickford commented 5 years ago

With Ionide-fsharp, F# Interactive in Visual Studio Code is brilliant:

  • FSI: Start
  • FSI: Send File
  • FSI: Send Line
  • FSI: Send Selection
  • FSI: Send References from project

It would be great to have similar commands for C# Interactive

Svetomechc commented 5 years ago

Is this still not a thing?

filipw commented 5 years ago

no, not at the moment

Dragon-God commented 4 years ago

I would greatly appreciate this feature as well.

mika76 commented 4 years ago

Yeah me too!

2E0PGS commented 4 years ago

Similar to the plans here: https://github.com/dotnet/interactive/issues/392

Similar to the feature request here: https://github.com/dotnet/interactive/issues/335

Similar to the feature request here: https://github.com/dotnet/roslyn/issues/17666

fgimian commented 2 years ago

I love and use REPLs all the time (coming from Python) and would love to see this too. However, in the meantime, check out CSharpRepl which you can easily use in any terminal with completions and syntax highlighting. It's very good!

Hope this helps Fotis

lonix1 commented 2 years ago

@fgimian I've been looking for even a half-decent REPL for ages, without success. The one you posted is simply incredible. Thank you!

JoeRobich commented 1 month ago

fsi ships in the .NET SDK and I think similarly csi should ship too. Then the repl would be available for everyone not just VSCode users and could be opened in the terminal.