dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.88k stars 676 forks source link

Support Debugger Text Visualizer #5023

Open HypeillingerChillinger opened 2 years ago

HypeillingerChillinger commented 2 years ago

Is there a text visualizer like in Visual Studio that shows a string in the debugger with carriage return?

gregg-miskelly commented 2 years ago

No.

I am not sure if it would be possible to do this in in a VS Code extension, or if this would need to be done in VS Code itself. But I will leave the issue here for now.

terryaney commented 1 year ago

Would be great, especially for XElement and JsonNode objects.

janaka commented 1 week ago

I opened a discussion about this https://github.com/dotnet/vscode-csharp/discussions/7807

If anybody can point me point me in the direction where the code for the current string visualizer exists even that would be helpful.

gregg-miskelly commented 5 days ago

For text visualizers (ex: plain text, HTML, json, etc), probably the C# extension has no role. Instead, https://github.com/microsoft/vscode/issues/197287 would need to be completed, and then it could work for all languages.

For non-text visualizers (something analogous to Visual Studio's custom .NET Visualizer framework), more work would be needed by at least the C# extension, and possible also VS Code.