Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the Window size of the new Windows Terminal

As you've heard, the new Windows Terminal has been released. What I can't find is how to adjust the window size. In the old consoles, if you wanted to change the settings, it would give you a GUI, but with the new console, you need JSON commands. I've tried a couple of commands which were initialCols and initialRows but they didn't work for me, and I have tried to search for a solution for a while. Is there another way for me to adjust the window size or is it just not possible as in this point in time?

like image 588
The Programming M16A4 Avatar asked Jun 01 '20 02:06

The Programming M16A4


People also ask

How do I change Windows Terminal settings?

You can open the terminal settings through the dropdown menu or by pressing Ctrl + , on your keyboard. From v1. 7, the JSON file that contains all the terminal settings is no longer open by default as was the case in earlier releases.

How do I change the default terminal in Windows Terminal?

Click on the drop-down for “Default Terminal application” and choose Windows Terminal from the list. The Windows Terminal app uses the Windows PowerShell profile by default when you launch the app.

Where is the Windows Terminal settings file?

If you run Windows Terminal from the Start menu: C:\windows\system32. If you run wt.exe from the Start menu: C:\windows\system32.

How do I change the font in Windows Terminal?

Change default Windows Terminal font face with settings UIUse the Shift + Ctrl + , (comma) keyboard shortcut to open the settings UI. Click on Defaults. Click the Appearance tab. Under the “Text” section, use the “Font face” setting and type the name of the style – for example, Consolas.


1 Answers

Open Terminal's settings.json file in a text editor (e.g. notepad), either from the Settings menu or from disk at %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState and add the following two lines (with the numbers you want to set instead of 92x60).

    "initialCols": 92,
    "initialRows": 60,

As noted in the Global settings in Windows Terminal documentation, those two lines should go under the root of the settings.json file, for example right above profiles.

    // A profile specifies a command to execute paired with ...
    "profiles":
    {
    ...
    }
like image 59
dxiv Avatar answered Nov 07 '22 20:11

dxiv