How to create a Template Mapping for “Fast New File (FNF)” extension

A “pattern”, in Fast New File extension, is basically a regular expression that  maps the file name you entered, to a Visual Studio Template. The extension has a few common patterns built in. These patterns,

  • Map MyType.cs to the C# Class template and creates a class named ​MyType.
  • Map IMyType.cs to the C# Interface template and creates an interface named MyType. etc.

A full list of built in mappings can be found in the source file in Fast new File git repo.

If you need custom mappings though, the good news is that this list of patterns are entirely overridable. Continue reading “How to create a Template Mapping for “Fast New File (FNF)” extension”

“Fast New File” for Visual Studio 2017 is Available on VS Marketplace

Get the Extension from the VS Marketplace.

Features

Features Inherited From AddAnyFile
  • Easily create any file with any file extension
  • Create files starting with a dot like ​.gitignore
  • Create deeper folder structures easily if required
  • Create folders when the entered name ends with a /
  • Use Shift+F2 keys to start creating a new file

Additional Features of FastNewFile

Continue reading ““Fast New File” for Visual Studio 2017 is Available on VS Marketplace”