An open API service indexing awesome lists of open source software.

https://github.com/ahmadkzx/vscode-file-creator

Easily create files using templates. Visual Studio Code extension.
https://github.com/ahmadkzx/vscode-file-creator

extension visual-studio-code vscode vscode-extension

Last synced: 3 months ago
JSON representation

Easily create files using templates. Visual Studio Code extension.

Awesome Lists containing this project

README

        

# File Creator

Easily Create Files Using Templates
It must have occurred to you that you have to write duplicate code when creating each file. This extension solves this problem for you using templates!

![preview](https://user-images.githubusercontent.com/69081259/125350515-156b5800-e374-11eb-826f-8414dbba5167.gif)

## ✅ Available Templates

Js:
- Array Module
- Function Module
- Object Module

React:
- Class Component
- Function Component

Vue:
- Component
- Plugin
- Router
- Store

Graphql:
- Query
- Mutation

## ✅ Add Custom Template

1. start a folder called .templates in root of project
2. in folder create file {file-format}-{name-of-template}.template. for example js-custom.template
3. write your template and save

🚧 NOTICE: you can use target folder name with %foldername and file name with %filename keywords

## ✅ Customize Current Templates
1. start a folder called .templates in root of project
2. create file with your target template file name.
template file names:
- graphql-mutation.template
- graphql-query
- js-array-module
- js-function-module
- js-object-module
- react-class-component
- react-function-component
- vue-component
- vue-plugin
- vue-router
- vue-store
3. write your template and save

🚧 NOTICE: you can use target folder name with %foldername and file name with %filename keywords

## Contribution
help us to improve extension and add other templates