dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.71k stars 3.98k forks source link

Editor control with intellisense for Scripting #6848

Open FrankBakkerNl opened 8 years ago

FrankBakkerNl commented 8 years ago

The Microsoft.CodeAnalysis.Scripting API is great for hosting C# as a macro language in any application. However, writing C# in a TextBox without Intellisense feels very unnatural and is not early as productive as it is inside Visual Studio.

Therefore it would be helpful if there was a standard C# edit control with Intellisens for hosting in any application. That way users do not only get use C# but also the full experience when C# is embedded in another application.

weltkante commented 8 years ago

Powershell already has a standalone version of the VS editor control (Microsoft.PowerShell.Editor assembly in the GAC) including implementations of intellisense and other core features, so it shouldn't be much of a problem to make it available, mostly an issue of licensing I guess.

It would be awesome if the VS editor control could be made available in a similar form as a nuget package and being integrated with roslyn :+1:

aelij commented 6 years ago

I've recently published a set of APIs and an editor control based on Roslyn & AvalonEdit that can work with any Roslyn document (not just scripts). There's even a cross-platform version that uses Avalonia.

NuGet and Samples.