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.
- Host: GitHub
- URL: https://github.com/ahmadkzx/vscode-file-creator
- Owner: ahmadkzx
- Created: 2021-06-12T08:40:39.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-17T06:15:44.000Z (almost 4 years ago)
- Last Synced: 2023-03-11T19:23:32.071Z (about 2 years ago)
- Topics: extension, visual-studio-code, vscode, vscode-extension
- Language: JavaScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=AhmadKZX.file-creator
- Size: 93.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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!
## ✅ Available Templates
Js:
- Array Module
- Function Module
- Object ModuleReact:
- Class Component
- Function ComponentVue:
- Component
- Plugin
- Router
- StoreGraphql:
- 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