
Just start typing the name of the file you're looking for until it appears in the results. Most of the time, you might be interested in the shortcut command+E: this will pop up a list of your recent files. Clicking that will take us right into this core Symfony spot and again we can look around inside of here and double click the tree to move us here. We can do the same thing here for handleRequest if we needed to know where that is. In this case, if I wanted to know exactly where this createForm() function lives, I would just hold command and click into it - so don't forget about that shortcut as well. This is the function I am calling when I say $this->createForm() from inside MovieController. So back to command+alt+O, type createForm, and there is the one inside of the base Controller class we extend. Inside of my controller I call createForm. I'll pick the top one and it takes me straight there. And now it's showing me all of the instances in the project where buildForm is used. So here we can look for something like the buildForm method from inside of my MovieType.

Symbol is referring basically to function names. The next shortcut on the list up there is "Symbol", which is command+alt+O. And now we're there and can look around and see what other interesting stuff is hiding here. Navigating Deep DirectoriesĪnd what's really cool - other than not being tipped over by Sam - is that we can use the navigation tree on top to actually click and look around inside of these deep directories.If we really wanted to, we could move the tree on the left all the way to that specific spot by double clicking that directory name at the top. If I saw you navigating here manually, I'd be tempted send Samuel L Jackson to your office to tip over your chair. Great! In this case we can see how deep that structure is for this particular file, it's way down in Symfony. Use command+shift+O again, type the file name, and we can see where it is in the project. We could even look up this bootstrap_3_layout thing here. Need to open a file, like config.yml? Well you're in luck, just use command+shift+O, start typing the file name in the search box and there it is. Knowing that I want to get into the MovieType class, I'll hit command+O, start typing the name and boom, I've got that open with just my keyboard. The first option in the list is "Navigate to Class". Navigating to Class and FileĬlick the navigate menu at the top. Time to introduce you to some new best friend shortcuts for navigating! In fact, PHPStorm thinks they're so important that they even have some of these listed front and center when you don't have any files open. Really, you want to have your hands off your mouse as often as possible. Most projects are too big to be opening files like this. I just hate seeing developers click manually into their directory tree to search for things.
