I suggest you ...

Add scriptcs (csx) intellisense and debugging in Visual Studio

415 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    cc shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    6 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Marc Sigrist commented  ·   ·  Flag as inappropriate

        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/.

      • anonymous commented  ·   ·  Flag as inappropriate

        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.

      • MH commented  ·   ·  Flag as inappropriate

        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  ·   ·  Flag as inappropriate

        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.

      Feedback and Knowledge Base