Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 405
Daniel Santos Avatar asked Oct 24 '19 13:10

Daniel Santos


People also ask

How do I turn off VSCode wrap?

wordWrap": "on" You can toggle word wrap for the VS Code session with ⌥Z (Windows, Linux Alt+Z).

How do I turn off line wrapping?

Right-click the control for which you want to enable or disable text wrapping, and then click Control Properties on the shortcut menu. Click the Display tab. Select or clear the Wrap text check box.

How do I use warp terminal in VSCode?

1) Go into Code > Preferences > Settings 2) Search up "terminal" in the search bar 3) Change Terminal › External: Osx Exec setting to "Warp.app" Then you can use CMD + SHIFT + C to open up a new session of Warp.

How do I get rid of the horizontal scrollbar in VSCode?

Use Ctrl + E, then Ctrl + W for disable horizontal scrolling.


2 Answers

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

like image 137
kanlukasz Avatar answered Sep 20 '22 17:09

kanlukasz


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.

like image 29
Kevin Goslar Avatar answered Sep 19 '22 17:09

Kevin Goslar