Disable line wrap in Visual Studio Code integrated Terminal? - visual-studio-code

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.

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

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

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.
More info at https://code.visualstudio.com/updates/v1_61#_fixed-dimensions.

Related

Vertical line spacing in Visual Studio Code's embedded terminal

I've set up Powerlevel10k on ZSH for WSL2 on VSCode, and have gone through the normal configuration procedures, such that the terminal prompt currently looks like this:
However, if possible I would like to increase the vertical line spacing between the first and second line of the prompt to avoid having the cursor touch the coloured segments. Is there a way to do this? Or if possible can I decrease the size of the cursor?
In Visual Studio code:
Press ctrl, to open Settings.
Type integrated line height.
Change the value to something larger than 1, for example, 1.4.

In VS Code, how do I bring the terminal up to the code editor section (without resizing the terminal)? "Terminal editors"

After getting more comfortable with awslogs, I am wondering if there's a way to actually open up or bring a terminal to the code editor view. For example, here's what I see in my iTerm2 app:
I don't really use iterm2 too much if I have to do some editing of files, but having this inside of VS Code in a tab would be really nice. Just would allow me to make changes to the Dockerfile and monitor the progress of the build from AWS.
Here's where I would like it to go:
I understand that this isn't really a "terminal" spot per se since it's typically at the bottom, but I was just curious to see if there was a way to do it without affecting the terminal on the bottom. In some rare cases it would be nice to attach to a tmux session from the code editor window so I can flip between that and code.
In the Insiders build now, and so presumably will be in v1.58, is the ability to put a terminal into an editor like you ask. You can also drag a terminal into the editor area to crop it there!
There are these commands:
Terminal: MoveTerminal into Editor Group
Terminal: Create Terminal Editor
workbench.action.terminal.moveToEditorInstance

How to expand VSCode's Interactive Terminal's text font

I've been working on a bunch of different projects in VSCode and just to clear up some space on my desktop I decided to quit all VSCode applications. Upon reopening it, the Interactive Terminal's text too small to read. I know you can just launch terminal and execute the same command but out of convince's sake I want to be able to increase the size of it again. Example of my issue
You can change the terminal display settings with this configuration in your settings.json.
I saw your photo, and it looks like there is some minor problem. Just reload your window - Command + R on macOS, or select Developer: Reload Window after opening the command palette. That should work.

Increase the width of line cursor in Visual Studio Code's terminal emulator?

Is there a way to increase the width of the line cursor in terminal? It is way too small! I believe it is a integrated xterm.js, but I don't know if it is possible to change the settings and such. The documentation doesn't help either.
This question Increase the caret cursor size in VS Code deals with cursor width of the editor, but it doesn't work for the terminal.
The ability to confiure xterm's cursorWidth has been added to Visual Studio Code; it should be available in the next release.

Scrolling the terminal line by line from the keyboard

Is it possible to scroll the terminal using the keyboard in Visual Studio Code line by line? I often find I need to look back in the REPL and using the mouse is pretty unergonomic.
If you search for scroll in the keyboard shortcuts you will see a few that apply to the terminal, including
Ctrl-Alt-PageUp
that will scroll the terminal up by a line. You could always rebind that if you wish.