Welcome back.
In the previous lecture, we have changed our default terminal
from PowerShell to CMB in a Windows device.
Now, let me show you how you can create
one or more terminals inside your integrated terminal
so you can use this plus icon here and you can create
as many terminal as possible and you can see that of here.
The previous one was PowerShell, and the new one that I'm creating is Samadhi.
This is because I have said the deployment seem right,
so let me just get rid of this PowerShell and suppose
now you are working on some project
and you need three terminals to be open side by side, right?
So these three terminals might confuse you at some point of time
and you need a way to distinguish between them.
Right.
So the good news is you can easily rename this dominos
inside your score and you can just simply distinguish between them.
Right.
So in order to rename your terminal,
all you have to do is you have to open up your command palette.
And by the way, who remembers the hotkey to open up the command palette?
Yeah, you guessed it right.
It's controls have to be a command.
Should be an inside.
Does you need to search for terminal and then rename.
You can see the solution or the intelligence already coming.
And from here, let's suppose I need to call this
first terminal as a node on terminal and let me hit.
And now you can see my terminal has renamed.
And suppose I want to call the other terminal.
Suppose it has a great gate terminal so I can just simply rename it
the same way and I can rename is that gate and a third one.
I'm going to keep it as simply right.
So this is a very cool thing that you'll only be able to do inside of the code.
Now let's suppose I need to open this terminal
inside as well so we can also do this.
And there are a couple of methods to do this as well.
So you can use this a split icon and split your terminal or else you can do
is basically this split command with group your terminal.
So I will suggest you not to do this.
You can simply drag and drop your terminal.
So one thing that you should note before dragging and dropping
is the terminal which you have selected as not going to spread.
So all the dominoes above the terminal
that you have selected are be able to be split.
And so. Right.
So you need to make sure that
that the terminal that you have selected is not going to be selected.
All the dominoes that you have not selected are only going to be split there.
Right?
So we have three terminals open side by side inside we scored
and depending upon your screen size, you can open as many terminal as you want.
That's your own choice that I assume.
Let me show you.
Let's suppose you want to on split on group
the terminal is now then you can simply right click over here
and you can choose the option of unsecured terminal nice and easy.
Now let's suppose I am very lazy
and I don't want to click on this plus icon to create new dominoes, right?
So what I will be doing is let me just open it again.
I will be setting my heart key
to open up or create new dominoes.
And by the way, you might remember that we have set
a heart key of control and to create new files inside our data.
So I'm going to follow the same pattern.
Right.
So what I need to do for this is I need to open up my command palette.
And again, I need to open source for terminal.
And here you can see a list of options are available.
And by the way, you can play with this after the next lecture.
So from here you can find this option of create new terminal.
And here you can see there's a shortcut present.
So the shortcut is control shift and the key.
And just honestly,
I don't have to use three key
shortcut, but this is a little bit annoying for me, so I need to select
or click a control shift and a back takes to create a new terminal.
I assume what I can do is let me just open up the command again
and from here let me just search for the option.
I mean, so terminal.
Here is our create new terminal option.
And from here I can click on this setting option here.
And you know what this window is?
It's keyboard windings.
And from here, I need to change my key by binding
from control shift back state to control end.
So simply click on this edit.
AUCTIONEER And you know the key that I'm going to enter and press the end.
Dokie Now my key binding has changed and now you can use
the heart key control and to create a new terminal.
Now there is a disadvantage of doing this that we.
So let me show you.
Let me close my terminals.
And if I use my same hotkey
control and again, to create new files, look what happens.
I'm ending up creating new terminals inside my terminal panel.
And I don't want this behavior.
I want my control end behavior to create new terminals
only when inside or when I am inside my terminal window.
So in order to fix this, I need to again go back to my keyboard shortcut page.
And from here I need to go to my settings
dot decent file and down below here you will find that
we have created a control and hard d
of when the terminal process supported.
So I'm going to change the when here and I'm going to change the went
from terminal process airport to terminal focus.
Right.
And after that I'm going to save this file.
Now let me show you let me close my terminal
and now if I use the hotkey control and this will end up
creating a new file for me and if I open up my terminal
and if I use the same hotkey control and then this will create a new terminal
for me.
Great stuff.
So with that, I'm going to pause this lecture here.
We will learn more about the integrated terminals
in the next lecture.