4

How to use, open, resize, and split Panes in the Windows Terminal

 3 years ago
source link: https://www.hanselman.com/blog/how-to-use-open-resize-and-split-panes-in-the-windows-terminal
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How to use, open, resize, and split Panes in the Windows Terminal
Sponsored By

My love and appreciate for the new open-source Windows Terminal is well-documented. I enjoy customizing the Windows Terminal with a nice prompt.

The Terminal of course has Tabs so you can open many different shells at once within a terminal instance, often I want to do things like Split Screen/Split Pane. "Use Tmux!" you might shout, and that's a valid thing to yell if I was only living in Linux (using WSL2). There are several multi-pane options to choose from within a shell using something like tmux.

However, the Windows Terminal supports a multi-pane view at the Terminal-level, regardless of shell!

There's great docs on setting up hotkeys for this, and you should.

The best way to get started with ZERO setup is to click the main Dropdown in Windows Terminal and hold down the ALT key while you click on a shell!

Below you can see Ubuntu/WSL2 on the left running htop, while on the right I'm running PowerShell 7 (powered by .NET Core) and sitting in my podcast's source code directory.

MultiPane Windows Terminal

I'll then click the dropdown, hold ALT, and click on the Visual Studio Developer Command Prompt that I've added to the menu. I'm doing this while Ubuntu is the focused pane.

My Windows Terminal Menu

And the result:

Three panes in Windows Terminal

Now you can see the VS2019 prompt in the lower left corner. With hotkeys I can control where panes open.

I can even navigate between pans with the ALT key and my arrow keys! Even better, SHIFT+ALT and the arrow keys will resize them!

Resized my Terminal Panes

Go spend some time learning about Panes in Windows Terminal and let me know how it goes for you! It's gonna make your command line life so much better!

ACTION: Finally, please take a moment and subscribe to my YouTube or head over to http://computerstufftheydidntteachyou.com and explore! I'd love to hit 100k subs over there. I heard they give snacks.


Sponsor: Suffering from a lack of clarity around software bugs? Give your customers the experience they deserve and expect with error monitoring from Raygun.com. Installs in minutes, try it today!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK