Add New FileVSCode extension to enable adding new files with template based on file type. Inspired by Visual Studio extension AddAnyFile Available ActionsAdd File: Add New FileUsed for creating new file at the path specified by the user. Opens input box prepopulated with the root path of the current workspace. Add File: Edit Custom TemplatesOpens the custom templates file for editing. If it does not exist it will be created in global storage. Customising TemplatesYou can define your own templates by running "Edit Custom Templates" from the command palette. This will generate a JSON file for you to place your own templates. You can even use it to overwrite the existing templates by setting the identifier to match the one from the default templates. Available TemplatesTypescriptClassPattern
File Template
TypescriptEnumPattern
File Template
GitIgnorePattern
File Template
C# InterfacePattern
File Template
C# ClassPattern
File Template
JSONPattern
File Template
Typescript Angular ComponentPattern
FileTemplate
Typescript Angular ModulePattern
FileTemplate
Typescript Angular SericePattern
FileTemplate
Typescript Jasmine TestPattern
FileTemplate
New TemplatesIf you want a file template to be added then you can either:
Raising a PRIf you decide to add the template yourself you will need to:
Raising an issueRequests for new template require 3 pieces of information to be included in the raised issue:
|