Hey, everyone. Welcome to a new section.
In this section, I'm going to show you some settings and shortcuts
that will help you to drastically improve your speed and workflow in vsco.
All right, so let's start this amazing section
with the first lecture that is find and replace, right?
So in this lecture, we will see how you can replace
any part of your code quickly and easily in Vsco.
So the first and the easiest method to do this is let's suppose
in my adjustment file I want to replace all the ugly bags with the old bags.
And so for this what I can do is let me just first zoom in
and after that, suppose this is my first ultra
and I know this is present here,
so I going to simply click on it and after that I can use the heart
Key controlled R to select the first instance.
Now again the same hotkey controlled to select the next instance.
And as you can see, as I press the control, the hotkey,
the other bag is getting highlighted.
So this is the third bag that is highlighted
and this is the fourth UN bag that is now highlighted and selected.
And now I can replace all of them at once and let's write in all add.
So I replaced all of them. Right.
Let me just zoom out.
So this is the first and the easiest way and let's undo.
So let's move to the fancier version of this.
So suppose you have a very large file and you have to search for something
containing list and. Right.
So forget what you can do is you can use the hotkey control F
to open up this file panel and let us search for list here.
And you can see I have two instances of list present in my file
and I can just toggle between them using these keys.
And now let's suppose I want to replace this list class name with another list.
Class name, so I can just simply use this icon here
and I can write an unordered list.
Right.
And I have two options here whether I need to replace
the selected instance or I need to replace all the instance, I can decide it here.
So if I click on this option here, this will replace the first instance.
And if I click this option, then it will replace all the instances.
So you see, I got an order and order list two times
because this unordered list also has a list in it.
So replace that to twice. Right.
So let me just do undo here once and let me just toggle to the next one.
So I'm currently on the next one as well and replace this.
So I have replaced all the list with the Analyst night.
So this is the one way to replace some instances
of your call to another one in a single design working file.
Right.
So suppose now you want to replace it to all the other files you're walking in.
So suppose you have the same class name in your achievement file
and your cases file and probably in your JavaScript White Right.
So you want to replace it to all the locations.
And for that what you can do is you can use the hotkey control
shift F or command shift F to open up this file and replace option.
And here you can type in
list like so.
Or let me just yeah, we will replace it back to list
using this option right so let's search for unordered list on order
or let me just undo this and we will then search it.
So I just and then this and let me just search it now.
So list I will hit enter and you can see
all the instances of list is highlighted here.
So I have two instances of list in my email file and two in the case file.
And now let's replace it.
Right?
So let's click on this icon list statement, unordered list,
and let's use
this option that is replace all all to use it.
You can also use the hotkey all control and command option.
Enter and it will replace all the four occurrences any on file.
Right.
So this has the another way to replace all
the instances in all the files by any of workspace.
Now, before closing this lecture, I want you to show one more shortcut.
So suppose you want to open both this search and replace panel at once
in your code and by default this replace has collapsed.
Then you can use the hotkey control shift edge or command
shift edge and it will open up this a replacement like this.
And here you can type in anything and replace it.
All right.
So this has all for the find and replace lecture.
In the next lecture
we will talk about snippets and we will build our own custom snippet.
So this is going to be a very interesting lecture and I will see you right there.