Macos – How to change the terminal line width in Visual Studio Code

macosterminalvisual-studio-code

I'm using Visual Studio Code 1.18.1 on Mac OSX and the integrated terminal seems to have a fixed width of 36 characters that doesn't increase when I make the terminal window wider.

How can change the number of characters per line in the terminal?
Is it possible to make the lines wrap based on the terminal window width?

Best Answer

There is no option to disable word-wrap in VS Code integrated terminal

Actually, for VSCode 1.61 (Sept. 2021), there is:

Terminal / Toggle wrapped lines:

Toggle the terminal width between fitting the full contents and wrapped lines via kb(workbench.action.terminal.sizeToContentWidth) or using the tab context menu action Toggle Size to Content Width.

https://media.githubusercontent.com/media/microsoft/vscode-docs/vnext/release-notes/images/1_61/terminal-content-width.gif

Keyboard shortcut: Alt+Z