'Disable line wrap in Visual Studio Code integrated Terminal?

How to disable line wrap in Visual Studio Code integrated Terminal?

I would like to do not see line breaking when output is too long.

Look how bad it looks.

enter image description here



Solution 1:[1]

There is currently no such option, but it may be available in the future because of #74501

Solution 2:[2]

Completely disabling line wrapping for embedded terminals in VSCode is not possible because the shell running within the terminal window always breaks lines to its visible width.

As of VSCode 1.61 (Sep 2021) you can set a wider virtual width of the terminal window. This reduces the amount of line wrapping the underlying shell is doing and gives you a nice scrollbar within VSCode.

To enable this, enter Terminal: Set Fixed Dimensions into VSCode's command palette.

screenshot of the command palette showing the "Terminal: set fixed dimensions" entry

More info at https://code.visualstudio.com/updates/v1_61#_fixed-dimensions.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 kanlukasz
Solution 2 Kevin Goslar