Visual Studio's Output window has a "Toggle Word Wrap" button, but VS Code has word wrapping always (?) enabled. For certain scenarious like the pending "C/C++ References" output it is desirable for word wrapping to be disabled for the results to be more easily read. There is a "View: Toggle Word Wrap" command, but it applies to the active document only (and not the Output panel, even if it's active).
And/or if the OutputChannel interface could add a toggleWordWrap capability, that would allow extensions to set an appropriate default for their particular Output channel.
This seems like a pretty basic feature that other Output channel providers would want, but I couldn't find an existing feature request on this.
https://github.com/microsoft/vscode/issues/21468
This describes the same issue and led to adding a config option but it doesn't seem to work or the feature request was misunderstood?
@ol-bones Thanks a lot -- I can use that [Log] setting as a workaround (by setting it in our package.json configurationDefaults); however, the result is still not ideal because it will apply to all Output windows and our C/C++ extension would prefer to isolate the behavior to a specific one. (And a button in the UI would make it easier for users to figure out how to overwrite our "no wrap" default).
Currently, one workaround is to set:
"[Log]": {
"editor.wordWrap": "on" // "off", "bounded", "wordWrapColumn"
},
@panchalkalpesh Yes, that is the same workaround I was describing (which our C/C++ extension uses), but it applies to all the output panes, and we'd prefer to isolate the change to a particular output pane (e.g. "C/C++" or "C/C++ References" and not "Git", etc.).
@sean-mcmanus that's a nice to have feature.
Most helpful comment
Currently, one workaround is to set: