Add Any File
A Visual Studio extension for easily adding new files to any project. Simply hit Shift+F2 to create an empty file in the selected folder or in the same folder as the selected file.
Note from Sameera Perera
This extension was forked from Mads Kristensen's Add File extension to support VS's build in templates. Since merging this repo, the original extension seems to have evolved without continuing to support Visual Studio templates, I'm going to leave this fork unsynced with the original.
Due to this, this repo has additional features that the original extension does not; such as the suggesting a file extension when on the file name prompt. It may also be missing features that the current version of the original extension has as no attempt has been made to keep the extension current with the original code base.
- Easily create any file with any file extension
- Create files starting with a dot like
- Create deeper folder structures easily if required
- Create folders when the entered name ends with a /
Show the dialog
A new button is added to the context menu in Solution Explorer.
You can either click that button or use the keybord shortcut Shift+F2.
Create additional folders for your file by using forward-slash to specify the structure.
For example, by typing scripts/test.js in the dialog, the folder scripts is created if it doesn't exist and the file test.js is then placed into it.