Effective PyCharm Transcripts
Chapter: PyCharm Projects
Lecture: Search everywhere
Login or purchase this course to watch this video and the rest of the course contents.
0:00 Let's look at another super powerful feature called 'Search Anywhere'.
0:05 And if you open up PyCharm and there's just this empty placeholder where the documents go. go. The very first thing that you see is search everywhere.
0:14 Double up arrow the double shift. What does that mean? Well there's this search icon over here and you could click
0:20 this. It says it searches for classes, files to windows, et cetera. Even more than that. But I never use this.
0:27 I just press shift really quickly got to do it pretty quick. So hit shift a couple times and check this out.
0:35 First thing you get if you don't type anything if you don't have anything selected is you get your recent files. So for example,
0:42 we had this UI helper open here. This is the rock paper scissors game that up at the top is using the UI
0:49 helper that we just saw. So incredibly helpful. And I use this all the time. If you have a small project that just has one or two files,
0:56 well, just go to that file. But real projects are large, much much larger. For example, over at talk Python training,
1:05 We've got about 20,000 lines of Python code that make up the website. You don't want to just click around till you find it.
1:12 You want to be able to quickly jump there. And one of the ways you can do that is to jump to the recent files
1:17 but maybe maybe we want to go and find something else over here. This rock paper scissors things. One of the things that it does is that here
1:25 you can see right here is it shows the leaderboard. So I suppose I don't have this open.
1:29 But I I know there's something about a leader or showing the leader board and I
1:33 want to get too. It's all pull up search anywhere and I'll just start to type, I'll just type of leader.
1:38 Look there's all the functions that we could do. We could load leaders, we could show the leader board and then obviously I could
1:43 jump back over to it. That's pretty cool. But you gotta make sure unselected and pull it back up. But there's better stuff I could do.
1:51 I could just type notice it was show_ leaderboard. I could type sl and it just matches the casing the separating letters here.
2:00 It also works for camel casing, like S, L, The 'sl' here's the show leaderboard.
2:06 But notice there's a whole bunch of other things like settings about turning the line numbers on and off and the local history and so on.
2:14 So we could restrict this. Just a classes. And notice here, we're looking in all places, we could just look in the project.
2:20 I don't think many classes here, so not all that's gonna happen in the files and the symbols. This is what we're working on.
2:28 And then the actions these are like commands. These are the menu commands and whatnot. Instead of if you don't remember what the hotkey is like.
2:35 Alt/option+ shift command d to show local changes as UML which whoever remembers that you could just type UML. No. Yeah, there it is.
2:46 And then it reminds you why you're there, what the hotkey would be, but you don't have to use it, right. This is super, super useful.
2:53 So two really important things to take away nothing selected. And having done it before. Really important for jumping around recent files,
3:00 even if they're not open. And then the other one is, let's go to that leaderboard. I want to jump down to the show leaderboard and
3:10 there it is now, it doesn't just take you over here. There's one more thing to keep in mind.
3:14 So suppose I'm I've got this collapsed and I've got this selected and then I go over here, let me actually close it. Let's go on and back over here.
3:26 Now, I want to go to the show leaderboard. I go back to it. Look, it has it exactly as it was like, this is collapsed. This is selected.
3:37 Really, really nice that it takes it back, takes you back to it exactly as you were working with it before. It doesn't just open it from scratch.
3:44 So this search anywhere is really, really valuable and I'm certain it's in general under used.
3:51 I have nothing else certainly for the recent files but goes way beyond Finally, you can also include non projects items.
3:57 So if I want to look for requests, if I've got requests installed as a package here,
4:02 you can see that would jump me over to the actual code for the request package This is the thing that we installed.
4:11 Search anywhere, make sure you make good use of it, double shift or the little icon in the top right.