Installing Project Manager0:00
One thing you'll often encounter is the need to switch between multiple projects that you're working on, and you need that to be really fast and seamless. So here for this new computer, I just whipped up two quick example projects. So yeah, often you'll be working in one, making your changes, but then you have to close it out, and then you switch over to the next project, and you open that up, and it just gets kind of annoying. Instead, we can solve this with projects. Now, we do have project support out of the box in Sublime, but I even like to use a dedicated package on top of that to make it a little more seamless. The one I use is called Project Manager. Let's find it. Yeah, let's pull that in. We have Laravel Mix. Let's go ahead and say Project Manager, and you'll see that we have a new one called Add New Project. Okay, done. So now, even if I don't have anything open, and you can see I have no project open here,
Editing Project Folders1:32
to make a change, it'll remember where I was. So like I go to ExampleTest, I'm going to switch back to Laravel Mix, and now I have the same settings that I had at that point. Now, you can even edit the folders. You see there's actually a lot of flexibility here. So let's go to Project Manager, Edit, My Laravel Mix Package, and yeah, here you can see for this project, we have exactly one path to Laravel Mix. But yeah, it's possible sometimes you have additional projects. So let's create an example here. I'm going to make a directory called Example, and then we'll touch ExampleFood.php or something. Okay, well, if for some reason that needs to be included here, you can just add it. So I could say Code Example, and now that folder will be included with this project. And you won't do this all the time, but sometimes I do it if I have maybe a project and then another one that's specifically for testing that project, and it needs to be its own thing
Excluding Files and Folders2:14
project. And you won't do this all the time, but sometimes I do it if I have maybe a project and then another one that's specifically for testing that project, and it needs to be its own thing to verify the full system or something like that. You can do that, and now they will always be contained. So if I close everything out and then bring this back, Ctrl Command P, Laravel Mix, and now I will always have that folder available to me. Or what you can do, let's go back to Edit, Project, or Laravel Mix. We could even do something like Folder, Exclude Patterns, and we'll say the NodeModules directory. We don't even want to see it. Okay, so now if we take a look at this, you'll notice that no longer do you see the NodeModules directory. But if I change it in some way, bring it back, you know what? In this case, we don't even have a NodeModules directory. Let's do this, npm install. Okay, but anyways, if we switch back,
want any locked files to show up. I wouldn't really recommend not showing that. But you can see those are now stripped. So yeah, if there are specific files that you never want to see, and then they take up space, you can hide those completely. And again, this is on a per-project basis. So here, I don't see NodeModules. But if I go to Laracast, if we had a NodeModules directory there, we would see it. You get the idea. And that's it. So I use this projects package religiously when using Sublime Text. So definitely give it a shot.
