⚠️ This lesson is retired and might contain outdated information.

Recursively Create Folders and Files in VS Code

Share this video with your friends

Social Share Links

Send Tweet
Published 5 years ago
Updated 2 years ago

Creating files and folders in VS Code get boring quickly when you are using the file or context menu. With the following steps, you can supercharge how you create folders and files:

  1. Install this extension

  2. Hit CTRL + OPTION + N

  3. Type the path of the file you want to create and hit ENTER

Instructor: [00:01] The default way to create files and folders in VS Code is to use the File menu or the Context menu, either of which can get boring quickly. What I would do is to use this extension code to create files and folders on the go.

[00:20] I already have this extension installed. You need to install it as well. Once I have this extension installed, or once you have it installed, all you need to do is hit Control-Option-N. This will pull out this text box. You can type in the path you want to create.

[00:37] In this case, I want to create full/path/index.js. If I hit Enter, you would see that this extension recursively creates this path for me. I have a full folder and a path folder with an index.js file.

[00:50] You can also create files in an existing folder. If I type full/path.js, you would see that the extension does not overwrite the existing structure. Instead, it adds the file in automatically.

egghead
egghead
~ 24 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today