Search code examples
visual-studio-codeword-wrap

How to word-wrap long messages in VSCode problem window?


In VS Code as of version 1.82.3, there is a shortcut for word-wrapping (e.g. Alt + 'Z' on Windows) in the editor window.

Is there something similar for longer compiler error messages in the problem window?

As an example, see my screenshot - the Editor window does wrap text, and the Problems window doesn't.

enter image description here


Solution

  • This was raised before in this issue ticket: Display full text in Problems pane. #83235 with the request: "Allow text in problems to word wrap or display full text on hover.". Unfortunately the solution route taken was to just add the tooltip instead of enabling wrapping.

    The mentioned workaround is to set "workbench.list.horizontalScrolling": true (in settings.json), though this will affect all lists and not just the one in the Problems Panel.

    The other workaround is to mouseover the description to get the tooltip.

    This command might also help (only to some degree- you are still at the mercy of where the newlines are in the original text): Problems: Show message in multiple lines (run in command palette).

    I suppose you could try raising the feature-request for wrapping again. If you do, please comment here with a link to your issue ticket, or edit the link into this answer post.

    Note that a feature-request was attempted by the asker at https://github.com/microsoft/vscode/issues/195053, but it failed to receive enough community support in the allotted window.


    Fun extra readings that aren't directly related: