- Overview
- Transcript
4.5 Lightning Fast Folder and File Creation
One of the questions that I'm most often asked about relates to how I'm able to create files so quickly in Sublime. With the right plugin, it's a cinch!
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
4.5 Lightning Fast Folder and File Creation
When people watch my other screen casts, one of the most frequent questions I get is how are you able to create files so quickly. And what they see is that I hit this keyboard shortcut, a little panel pops up at the bottom, I type the path to the file and then it instantly is created. Which is a lot quicker than going to File > New File, saving it, having this GUI pop up and then typing the file. So let's set that up and it's via a plugin called advanced new file. Shift+Cmd+P, Install, Advanced Newfile. So now once again, if you have no idea how to use this, go to Sublime > Preferences > Browse Packages. Look for Advanced Newfile and take a quick look at the ReadMe and I'll just drag that in. Now we can see the key maps is super. And by the way, you'll see super used a lot in Sublime and that's because Sublime is available in Mac, Linux and Windows. Now in Linux, there is a super key. On the Mac, that would be your command key. So whenever you see super, just think command. So in this case, if we type Cmd+Alt+N, that will allow me to create a new file. So let's try it out. Close all of this out. So Cmd+Option+N and now we have this new path come up. And what's cool about this is, yes, I can do the standard file name that will create the file and as soon as you save it, it will pop-up. But you can also specify a path. So I can do it once again, Cmd+Option+N. And now I'm going to place it within the boilerplate directory and we'll call it buttons.css. Now that's been added to the boilerplate directory, but here's what's even cooler. If you specify a path where the directories have not been created, it'll do that for you. So to give you an example, I'm gonna delete all three of these. Now Cmd+Option+N and let's go into the CSS directory, maybe within SASS and we'll create something called buttons.sass. Now it's created that entire directory structure for us and that's how I'm able to create files so quickly. So I never do Cmd+N, that just doesn't happen. I will always do Cmd+Option+N or if I'm using vintage mode, I even assign that to a shorter key stroke. But maybe we'll talk about that in the vintage section of this course