Hi,@Sagar Kardani.Welcome Microsoft Q&A.
Yes, it is possible to host the Visual Studio editor in a WPF app using the Microsoft.VisualStudio.Editor namespace and related libraries. This allows you to integrate the Visual Studio editor functionality into your own application. It's more complicated, you could check out the attempt here.
You can also try to consider using the Roslyn-based code editor called "RoslynPad." RoslynPad is a lightweight C# IDE that provides a rich editing experience and utilizes the Roslyn compiler platform.
RoslynPad is also open-source, and you can find its repository on GitHub. It offers advanced features like syntax highlighting, code completion, error checking, and more. You can explore its source code and integrate it into your WPF application. Keep in mind that integrating RoslynPad will require some additional effort and customization based on your specific requirements.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.