vscode-file-creator:使用模板轻松创建文件。 VSCode 扩展

时间:2021-08-05 06:43:56
【文件属性】:
文件名称:vscode-file-creator:使用模板轻松创建文件。 VSCode 扩展
文件大小:76KB
文件格式:ZIP
更新时间:2021-08-05 06:43:56
extension vscode visual-studio-code vscode-extension JavaScript 文件创建者 使用模板轻松创建文件您一定已经想到在创建每个文件时必须编写重复的代码。 这个扩展使用模板为你解决了这个问题! :check_mark_button: 可用模板 JS: 阵列模块 功能模块 对象模块 React: 类组件 功能组件 视图: 成分 插入 路由器 店铺 图形: 询问 突变 :check_mark_button: 添加自定义模板 在项目的根目录中启动一个名为 .templates 的文件夹 在文件夹中创建文件 {file-format}-{name-of-template}.template。 例如 js-custom.template 编写模板并保存 :construction: 注意:您可以将目标文件夹名称与 %foldername 和文件名与 %filename 关键字一起使用 :check_mark_button: 自定义当前模板 在项目的根目录中启动一个名为 .templates 的文件夹 使用您的目标模板文件名创建文件。 模板文件名: graphql-mutation.
【文件预览】:
vscode-file-creator-master
----.eslintrc.json(429B)
----.gitignore(34B)
----package.json(4KB)
----jsconfig.json(179B)
----package-lock.json(60KB)
----src()
--------templates()
--------helpers()
--------extension.js(542B)
--------register()
----vsc-extension-quickstart.md(2KB)
----.vscodeignore(126B)
----CHANGELOG.md(239B)
----README.md(1KB)
----.vscode()
--------launch.json(695B)
--------extensions.json(169B)
----icon.png(41KB)
----test()
--------runTest.js(653B)
--------suite()

网友评论