vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Feature Request: C# REPL

Open martinsuchan opened this issue 8 years ago • 13 comments

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.

martinsuchan avatar Feb 14 '17 11:02 martinsuchan

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 avatar May 03 '17 05:05 filipw

Here is the Ionide experience

filipw avatar May 04 '17 16:05 filipw

Would love that

dz4va avatar Oct 13 '17 07:10 dz4va

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.

runxc1 avatar Apr 04 '18 23:04 runxc1

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

hickford avatar Jan 24 '19 16:01 hickford

Is this still not a thing?

Svetomechc avatar Sep 19 '19 10:09 Svetomechc

no, not at the moment

filipw avatar Sep 19 '19 10:09 filipw

I would greatly appreciate this feature as well.

Dragon-God avatar Feb 19 '20 09:02 Dragon-God

Yeah me too!

mika76 avatar Mar 04 '20 11:03 mika76

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

2E0PGS avatar Sep 19 '20 15:09 2E0PGS

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

fgimian avatar Jun 26 '22 07:06 fgimian

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

lonix1 avatar Jun 26 '22 10:06 lonix1