Hello, everyone.
Welcome to another exciting lecture of this quarter.
And in today's lecture
we are going to learn about keyboard shortcuts of voice code.
Right.
So everything in this section that we have seen below
and that we are going to see now is going to be completely focused
towards your productivity and enhancing your workflow.
Right?
So let's begin this lecture so you can perform almost all of the task
in voice code directly from your keyboard and there are numerous keyboard shortcuts
already available for these and you can access them
or you can know more about them by going to the file options
and under the preferences you will find the keyboard shortcuts option, right?
So they even have a keyboard shortcut for this.
And this is control key, followed by a control s
so you can open this out like this or you can use the hotkey
that they have provided.
And this is control key, followed by s.
So you need to first press control and then key.
And after releasing the key, you need to quickly press the ask it
to open up this shortcut panel. Right.
So these are the key bindings that are already present in Vsco.
So then they have the command and that is what they are going to do.
They are the key bindings and some of them have been
and some of them have don't have open, right?
So for example, this one has an add goes up and this shows
when this is editor text is in focus and this one has a key binding of this.
Right.
So we have done other keyboard shortcuts like copy control.
See, we had the debugging shortcuts.
We have a file for debugging.
We have we have open file open for loading,
and we have already seen in the fourth section of this course,
we have the Save settings, Save Shortcuts and a lot more.
Right?
So keyboard shortcuts play a vital role in the productivity.
And suppose before switching to voice code,
you might be working on some other code editor.
And let's suppose that is sublime text right?
So you might be used to using the heart keys or the shortcuts of sublime text,
but via scored is slightly different from it
in comparison to the keyboard shortcuts.
For example, let me demonstrate you.
Let me create a new HTML file.
So let's name it as index dot.
It's all right.
So in sublime text, ah, you can duplicate a line
using the highlight key controls shift B and that will duplicate it.
But in win R in V score,
if you use that hotkey, this will open up the debugging panel.
You can see this is the heart key for debugging panel
and you can do the same thing in this code using the heart
oil shift down arrow and this will duplicate this line.
But suppose you want that shortcut, that sublime
text shortcut to be used in this area.
Score then how you can do this.
So the good thing for you is Vsco has an option to map
your previous editor shortcuts into it.
So you can do this by going to the file option and preferences
and then the key maps and even have a shortcut for this as well.
So you press it and an extension panel will open up.
And here you can choose the editor that you have been working with previously.
So this is the sublime text and let me install it
and I will show you the changes that have occurred.
Right.
So this is the index word estimate file and now if I use the heart
key controls shift B, then you can see
I can duplicate this line using this hotkey.
So I don't want to mess up with all of this.
So I am just uninstalling it after that.
If you want to use it, you can keep this, but if you're not, then stick
with the vsco shortcuts and you will learn them as you move further
and as you explore more, as you work more on Vsco, you will learn them.
Right now, let's move to back to this keyboard shortcuts page,
and now I'm going to show you how you can create your own custom shortcuts.
Right?
So in the previous two previous video, we have seen how to replace something,
how to find and replace something in score.
And the shortcut for that is, I think, shift controls shift
F two for this, for this
final replace and control F for find. Right.
So we can we can just change that shortcut
and we can do it by just let me search replace here
and now this is the replace shortcut.
So we have control edge as a shortcut to replace something.
So in this index or decimal file, if I use the shortcut control edge,
then this will open this one and replacement.
But you don't think that this is a bit weird?
We should have control R instead of control at two.
So let's add a place that you need to double click on this key by ending here
and this will open up this panel and now you need to register your shortcut.
So my shortcut this control R And now let's press enter.
So now our new shortcut has been replaced and now let's test it out.
So in this file,
first of all, let me just get rid of this and let's use the hotkey control.
R And now you can see the same find and the place panel has been opened up.
So this is how you can create your own custom keyboard shortcuts, right?
So let's do a funky thing here.
We have C file something options.
So this is I will save this control s
and saved are save as s control
shift as and save all is unknown yet
right so we can said this save all
Let's say this Let's add this to be control
as to control shift s and hit enter and this will save all the files.
So if I press control save s then this is going to save all the files
that is present, all that is open and this added area.
Right.
So now let's look at some more options we have here.
So in the three dots, we had this show default key bindings,
we have the extension key bindings, then we have the user key bindings.
So this will show you all the key bindings that you have created.
You might remember that we have created an advanced new file keyboard shortcut
in the extension video, and the key binding for that one is control end.
And we have just created the replace and the Save all shortcut.
Right?
So these are the shortcuts that we have created.
And you see the replace one is going to be working
when the editor is focused or the editor is open, right.
So you can only use it are under this condition
and you can read more about this on the voice control website.
Let me just show you this. Right?
So here on this voice code
website, by the way, I will attach the link and the resources.
So in this website you can read more about the shortcuts.
And down here you can see all the combinations of them.
Then you can apply in the keyboard shortcut.
So if sometimes or if someday you want to play with the keyboard
shortcuts, then you can open up this website, see the van combination
that you can apply, and just make your own shortcut.
And I will also show you how you can do this.
So let's create a new shortcut file so this will open up
the keyboard shortcut JSON file that we have on this icon here.
So now you can see we have a pretty much we have five or six
shortcuts already present and you can add in the event condition as well.
Here.
So you can type in the one condition and it will work like this, like this.
Right. Let me just
make it
as it is. Yes.
And close this. Right.
So this is pretty much everything that you need to know about the keyboard
shortcuts and one more thing that I forget to mention is suppose
you have two or more keyboard shortcuts that are conflicting.
For example, the control or keyboard shortcut is conflicting
with that debugging or with the reload window
and the open reason and something like this, we have just also added
the replace keyboard shortcut for control R, then the user specified
the user specific, the user registered keyboard shortcut will be given priority
or the actual other already present one.
Right.
So this is the last thing our keyboard shortcuts
and the next lecture we are going to learn
about another exciting, amazing thing that is M.ed.
So see you in the next lecture.