1. Zoom for Better Visibility
If you have a high-resolution monitor, seeing the text on Windows Terminal gets a little troublesome. The Windows Terminal gives you the option to resize the text according to your preferences. Hold down the Ctrl key on the keyboard and scroll the mouse wheel to resize the text. Scroll the mouse wheel up to increase the text size and down to decrease it. The zoom will persist for the current session and reset on a new session. If you want a specific text size, you can change it through the “Appearance” section in “Settings.”
2. Change the Starting Directory
By default, Windows Terminal opens in the “C:\Users<username>\” directory, where
3. Changing Default Profile
At times you may need Windows Terminal to launch in a profile other than the default PowerShell profile. If you need to change that, it’s quite easy. When you restart Windows Terminal or open a new tab, it’ll open your selected profile.
4. Custom SSH Profiles
In some situations, it can be handy if you can automatically SSH into remote servers through Windows Terminal. To achieve this, you need to set up a new custom profile through the JSON file. Once saved, you’ll see the new profile in the drop-down menu next to the new tab button. Clicking on the entry will launch the SSH profile and connect to the remote server in your preferred WSL.
5. Command Palette
Command Palette allows you to see the actions you can run inside the Windows Terminal. You can use Ctrl + Shift + P to invoke Command Palette in Windows Terminal. It starts with >, and you can remove it to enter wt commands like the following. When typing the command, you’ll find what will be the result of the command to give you an idea of what to expect, especially when you’re not familiar with wt commands.
6. Split Panes for Multi-Shell Management
The Windows Terminal supports splitting the panes for better multitasking. You can have PowerShell on one side and Command Prompt on the other. Instead of going back and forth between two tabs, it’s best to do a split pane and take a look at both simultaneously. You can split panes vertically with the Alt + Shift + - shortcut. If you want to split them horizontally, use Alt + Shift + =. You can also use Ctrl + Shift + P to split panes with the command palette. Alternatively, when you hold Alt and open a new tab or select a different profile from the drop-down menu, it’ll auto-split the active pane. Switch between these panes by holding Alt and pressing the arrow keys. Hold down Alt + Shift and use the arrow keys to resize the selected pane.
7. Change the Startup Layout
When you fire up the Windows Terminal, it opens up in a single tab using the default profile. You can customize the startup layout with some command-line arguments. The following command allows you to launch Windows Terminal with split-pane mode: This command will open Command Prompt and PowerShell tabs in new vertical panes. You can read more about these command-line arguments in Microsoft Documentation to personalize Windows Terminal more.
8. Docker Integration
Docker might be a little confusing for beginners, primarily if you use Command Prompt/PowerShell. These command lines don’t support the auto-completion of Docker commands, making it more tricky. To give you an overview, Docker uses WSL 2 in Windows and provides the ability to leverage Linux workspaces, alleviating you from the maintenance of both Linux and Windows build scripts. To put this in simple terms, you can use Linux containers inside other WSL containers inside Windows without emulation. You’ll need a few prerequisites before proceeding with Docker:
Download and install Docker DesktopWSL 2 feature enabled on WindowsDownload and install the Linux kernel update packageTwo or more WSLs installed from Microsoft Store, such as Ubuntu
It’ll show all the Linux Distributions installed on your computer and their versions. Make sure every Linux Distro is on version 2 since Docker uses the dynamic memory allocation feature in WSL 2. You’ll see “*” (Star symbol) next to your default WSL implementation. In our case, we have Ubuntu 18.04, and Ubuntu (20.04) installed, and are enabling them. You’ll see the installed Linux distros here. If you don’t, install a Linux distribution from Microsoft Store. To identify whether Docker is working, type the following command. If it is working, you’ll see a hello message from Docker; otherwise, go through the above steps to repair Docker. Press Y and press Enter if prompted. Once installed, enter the following command to verify the version of the Linux distribution. It’ll show you that you’re running Ubuntu 20.04. That is how you can use Docker to run a Linux Distribution inside another Linux distro without the need for a separate emulation. You can always use the exit command to get back to your original Linux distro.
Customize Windows Terminal Your Way
These are some customization tips to make Windows Terminal more productive. You’ll also find many options in the “Settings” page to customize the appearance of Terminal, like icons, tabs, background images, and much more. Windows Terminal is a customizable, powerful app that offers nifty features. However, Windows lets you customize other OS elements like Action Center, Desktop, Taskbar, and many others.