Disable line wrap in Visual Studio Code integrated Terminal?

Viewed 3101

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

3 Answers

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

There was an issue #74501 with this before that was fixed, now you can in terminal use alt+z keybinding to toggle between the wrap and unwrap

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.

Related