vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

[Debugger] Feature request: “View string as document” for multiline strings

Open MistaTwista opened this issue 4 months ago • 3 comments

Is your feature request related to a problem? Please describe. When debugging Go code, long string variables are rendered as a single escaped line (\n, \t, etc.) This makes multi-line content, like templated Go code hard to read and reason about

Describe the solution you'd like Add a context-menu command like “View string as document…” for string variables.

Selecting it would:

  • Open the value in a new editor tab
  • Show real line breaks instead of escape sequences
  • Let the user pick a language mode so built-in syntax highlighting applies

Describe alternatives you've considered

  • Expanding the inline viewer: still shows escaped characters and wrecks layout
  • Copy-pasting into a new file: slow and breaks debugging flow
  • External pretty-print tools: require context switching and lose debugger context
  • Add functions to render files in FS

Image

MistaTwista avatar Jul 26 '25 14:07 MistaTwista