C# REPL - execute one-off C# code on the fly from within VS
I'd like to see a full read/eval/print loop for C# built into Visual Studio - much like F# Interactive, or Ruby's "irb".
When debugging, this would let you interact with the current state of the debugged application - like the Immediate Window does now, but more powerful (e.g. with support for lambdas).
When in design/editing mode, this would work a lot like LinqPad, but integrated into the IDE. It would let you evaluate expressions and execute multi-statement code blocks. This would let developers interactively experiment with their application classes ,.NET framework classes, and third-party APIs while writing code in Visual Studio.
Sherry Ummen commented
Kasey Uhlenhuth commented
Hi Jack and Shaun,
Unfortunately, the C# REPL (Interactive Window) will not be in-the-box for VS2015. We are working to deliver it as an out-of-the-box tool as close to RTM as we can (fingers crossed!). Our team is working hard to improve your debugging and editing experiences for VS2015 and we know that getting the REPL in your hands will be the icing on the cake. I will post any updates I can on the C# and Visual Basic blogs (links below)!
Is this going to make it into VS 2015? I loved this in the 2012 Roslyn CTP.
Shaun McFall commented
Are there any updates on this? It existed at one point in the Roslyn CTP, but seems like it's never come back, as far as I know, in any recent Roslyn/VS updates. When programming I now keep an instance of VS2010 open as well as 2013 (or 2015 now) just so I can have this feature.
Please update this Under Review item with a current status since it is nearly 2.5 years since the last update
Consider a road map of proposed features for the next 12 months, a bucket of proposed features for the 12-24 months, features proposed for 24+ months and a bucket of never to be done features.
A periodic once every 6 months review of all open backlog/bug/feature requests items with a required update to their status should be followed.
This is a recapture, targeted version if any, name of person updating the status, team that reviewed the status and recommended the new update, etc.
This keeps open items current, lets never to be done ones be closed as 'not to be implemented' and keeps old issues from having the same redundant discussions once every year or so.
Karen Ng (MSFT) commented
We've also just released a preview of the C# Interactive feature for design-time in the Roslyn CTP release. You can download it today (it's a tiny install on top of Visual Studio 2010 SP1) and try it out!
Wow, you guys are in for a treat. If you haven't seen it already you simply must watch this talk on the Future directions for C# and Visual Basic given by Anders Hejlsberg at the Microsoft BUILD conference. All of it is exciting but I suggest you pay special attention to the part about 40 minutes in!:
Anthony D. Green | Program Manager | Visual Basic & C# Languages Team