Add scriptcs (csx) intellisense and debugging in Visual Studio
Michael Helfenstein commented
Actualy i need visual studio code for write my csx scripts :(
Marc Sigrist commented
In the current implementation, C# Interactive is not user friendly enough for widespread success.
Editing in the C# Interactive Window is too cumbersome except for very small code samples. The alternative, sending code from a cs file to C# Interactive with Ctr+E,Ctr+E, is usually not practical, because 1) a cs file has additional code mixed in that is not currently needed for interactive evaluation, and 2) interactive compiler directives are not available in the cs file.
Adding a csx editor to Visual Studio is a prerequisite to make C# interactive truly successful. This can be seen from F#, where F# interactive is heavily used by each and every F# programmer. See also https://docs.microsoft.com/en-us/dotnet/fsharp/tutorials/fsharp-interactive/.
You have to be kidding me. We actually have ask for this:/
Yes we totally need support for editing this in Visual Studio. I still want to type check it and be able to compile it, before deploying.
You can run .csx scripts with C# Interactive (csi.exe). It would be neat if you could debug them in Visual Studio.
Ivan Garcia commented
FYI: "CS-Script" (a scriptcs alternative that has been around for years) has managed to do this very well, allowing you to edit single-file C# scripts in Visual Studio with full intellisense support. They also have a standalone notepad++ plugin with fairly robust code completion support.