Next lesson playing in 5 seconds
Cancel- Overview
- Transcript
2.5 Instant File Changing
I think you'll find that Sublime's instant file switching capabilities is quicker than any other editor you've used.
1.Introduction1 lesson, 02:05
1.1Welcome02:05
2.Getting Started9 lessons, 35:20
2.1Installation and Base Settings04:54
2.2Services and Opening Sublime From the Terminal02:20
2.3Multiple Cursors and Incremental Search06:54
2.4The Command Palette04:13
2.5Instant File Changing03:19
2.6Symbols04:17
2.7Key Bindings02:33
2.8Installing Plugins Without Package Control02:54
2.9Package Control03:56
3.Snippets3 lessons, 14:40
3.1Your First Snippet09:04
3.2Adding Snippets Through Package Control02:32
3.3Easier Testing With Snippets03:04
4.Essential Plugins12 lessons, 46:58
4.1Zen Coding07:09
4.2Emmet06:52
4.3Cross-Browser CSS With Prefixr02:17
4.4Fetch Files With Ease 04:22
4.5Lightning Fast Folder and File Creation 02:12
4.6Sidebar Enhancements03:09
4.7Sublime Linter02:01
4.8Sexy Code Snippet Management With Gists07:50
4.9DocBlockr03:49
4.10Pretty Task Management02:42
4.11HTTP Requests Within Sublime02:29
4.12LiveReload02:06
5.Tips, Techniques and Modifications8 lessons, 49:09
5.1Regular Expressions in Sublime05:49
5.2Vintage Mode10:46
5.3Quicker Stylesheet References02:30
5.4Joining Lines04:40
5.5Sublime and Markdown with Marked03:10
5.6All About Projects 05:54
5.7Configuring and Mastering Split Windows07:19
5.8Custom Builds09:01
6.Closing1 lesson, 00:49
6.1Conclusion00:49
2.5 Instant File Changing
Let's say that I need to, in this project, edit one of my view files. Well, it's possible that maybe if you're coming from an IDE or something like that, you would go to Application, then you'd go into the View, then you'd go into Home and then you would open up your view file. Now on a side note, I want you to keep in mind, notice how the syntax isn't right. And that's because I'm using a templating engine called Blade, but the problem is that, there is no syntax for Blade, as you can see right here. But with Sublime Text, I can install Blade syntax highlighting in literally about four seconds. So stay tune for that in a future lesson. But now, going back to browsing the files, that sure did take awhile. And again, I'm being relative here. It took about five seconds, but if every time I'm going to a file, I can do it four or five more seconds more quickly than you. Imagine how much more I can get done over the course of a year. This stuff really does add up. So instead, what I'm going to do is open up something similar to the Command Palette. I'm gonna hit Cmd+P or Goto Anything. So think of this in the same way as you think of your Command Palette, but this is specifically for your files and you still have fuzzy searching. So if I know I need to go to the Home view, I can type home forward slash and now that's going to return any of the files that have home in them. And technically, this is fuzzy searching, so it's returning any of the files that have H-O-M-E and forward slash within them. So another way would be views/home, that would work, too. And now notice I don't have to browse to the side bar at all. Or think of other ways that you can identify your views. If I know that I use a templating engine, well, blade is a rather unique word. So Cmd+P, look for any files that have blade in them and now we get the blade source file. I'm instantly there. So in this case, I'll go to home, look for blade files and now we have that or I would likely go to views index and then I would find it. In this case, I want the first one. So now I'm there. So this means that once you know your file structure quite well, you can hit Cmd+KB to hide the sidebar and now you rarely need to go there. When I need to edit, for example, that paths.php. Cmd+P, paths.php and I'm there. Or Cmd+P, test.js, I'm instantly there. Now what makes this so powerful is, well, let's say that other apps have this functionality, but it's not nearly as fast. So if I were to open bundles, I want you to note that in other apps, you would have to find the file hit Enter and then it would be loaded. But in Sublime, it's immediately opening the topmost file which matches your query. So for example, let's say that we instead want this bundle.test file. Well, I'll hit Test and now notice, it's instantly updating the file in the background. And what your going to find is I've used lots of the editors and this is far and away the quickest implementation available. And that does it for this lesson. So remember, Cmd+P to bring up the go to anything palette. Type the name of the file, hit Ignore. It does not need to be the entire path or the entire file name, you just want to think out the identifier. So in this case, I don't have to type period for getignore. I can really just type ignore and that will come up. All right. I'll see you in the next video.