در حال بارگذاری ...

Installing File Extension0:36

I'll hit Escape to undo that, though. However, there's an extension I'd like to pull in. So I will open up the Command Palette with Shift-Command-P, and let's look for Show Extensions. Yeah, and you'll see we have a keyboard shortcut of Shift-Command-X, or map that to whatever you want. Advanced New File, and this is actually a port from Sublime Text. I'm not familiar with this one. That might be great, too. This is the one I generally use. So we will pull that in, and you'll see it opens up a dialog like the Command Palette.

Creating Files Quickly0:59

This is the one I generally use. So we will pull that in, and you'll see it opens up a dialog like the Command Palette to quickly create your file. So I will reload that, and let's give it a shot. Now this should pop up in the Command Palette, and we'll see it defaults to Command-Option-N, which incidentally is the same as Sublime. So let's give that a shot. Let's create a new controller, maybe. Now you'll see we want to give it the directory, not the full file name. So for example, if I want a controller, I can do that, and then do foo-controller.php,

Now you'll see we want to give it the directory, not the full file name. So for example, if I want a controller, I can do that, and then do foo-controller.php, save it, and I'll hit Shift-Command-E to go back to my tree view, and there it is. So let's give that another shot. Command-Backspace to delete, and once again, Command-Option-N will create a controller, foo-controller.php, and you can see that's actually pretty quick, I think. But now, I don't like having to switch over here and then Command-Delete. Granted, it's very, very quick, but I still want that as seamless as possible. Now if I hit Shift-Command-P to pull up the Command Palette, yeah, I don't see any shortcut here.

Deleting and Renaming Files2:44

So Shift-Command-P, Delete, there it is, and now we're done. Or a common one is Rename. I'll do this for my tests a lot. So let's say we want this to be called Member. Alright, Shift-Command-P, Rename, Member.php, and there we go. Now this isn't phpStorm, so don't forget, you would also have to update the class name itself. Alright, so now that I can sufficiently manipulate the files and their names and their locations, in the next episode, let's focus on traversal.

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟