{"id":13898108,"url":"https://github.com/cantonios/vscode-project-templates","last_synced_at":"2025-07-17T15:32:12.663Z","repository":{"id":36622450,"uuid":"157792806","full_name":"cantonios/vscode-project-templates","owner":"cantonios","description":"Project Templates extension for VSCode","archived":false,"fork":false,"pushed_at":"2022-12-08T05:29:05.000Z","size":3319,"stargazers_count":68,"open_issues_count":17,"forks_count":25,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-31T11:50:08.473Z","etag":null,"topics":["placeholder","project","template","vscode"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cantonios.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-16T01:02:09.000Z","updated_at":"2025-05-16T08:42:39.000Z","dependencies_parsed_at":"2023-01-17T03:15:47.267Z","dependency_job_id":null,"html_url":"https://github.com/cantonios/vscode-project-templates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cantonios/vscode-project-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cantonios%2Fvscode-project-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cantonios%2Fvscode-project-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cantonios%2Fvscode-project-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cantonios%2Fvscode-project-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cantonios","download_url":"https://codeload.github.com/cantonios/vscode-project-templates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cantonios%2Fvscode-project-templates/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265622692,"owners_count":23800021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["placeholder","project","template","vscode"],"created_at":"2024-08-06T18:04:04.974Z","updated_at":"2025-07-17T15:32:12.256Z","avatar_url":"https://github.com/cantonios.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\n# Project Templates VSCode Extension\n\n[Visual Studio code](https://code.visualstudio.com) extension that allows you to quickly create new projects based on custom templates. \n\nInspired by [this File Templates Extension](https://github.com/brpaz/vscode-file-templates-ext), which is itself inspired by [a similar Atom Extension](https://atom.io/packages/file-templates).\n\n## Features\n\n* Create a new project from a template directory\n* Save the current project as a template directory\n* Use customizable placeholders for easy interactive configuration\n\n\n![demo](https://raw.githubusercontent.com/cantonios/vscode-project-templates/master/images/demofast.gif)\n\n## Install\n\nIn Visual Studio code, Press F1 to open the command menu and type ```ext install cantonios.project-templates```.\n\n## Extension Settings\n\nThis extension contributes the following settings:\n\n```ts\n{\n  \"projectTemplates.templatesDirectory\": \"\",          // default directory containing project templates\n  \"projectTemplates.usePlaceholders\": true,           // activate placeholder substitution\n  \"projectTemplates.placeholders\": {  },              // dictionary of default placeholder key-value pairs\n  \"projectTemplates.placeholderRegExp\": \"#{(\\\\w+?)}\"  // regular expression to use for detecting placeholders\n}\n```\n\n## Known Issues\n\n* None\n\n## Release Notes\n\nSee [CHANGELOG](https://github.com/cantonios/vscode-project-templates/tree/master/CHANGELOG.md) for release notes.\n\n\n## Usage\n\nExtension commands can be executed from the Command Palette or from the context menu when selecting a folder.\n\n\u003cimg src=\"https://raw.githubusercontent.com/cantonios/vscode-project-templates/master/images/commands.png\" width=\"450\" /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/cantonios/vscode-project-templates/master/images/menu.png\" width=\"250\" /\u003e  \n\n### Creating a Project from a Template\n\n* In VSCode, open a folder that will contain your new project.  Use the Command Palette to execute the command \"Project: Create Project From Template\".  A list of available templates should appear. Select the desired template.  The contents of the template will be copied to the current root workspace directory.\n* If called from the context menu, the contents of the template will instead be copied to the selected folder.\n\n### Saving a Project as a Template\n\n* Create the desired template project in your current root workspace directory.  Use the Command Palette to execute the command \"Project: Save Project As Template\".  Enter the name for your template.  The contents of your root workspace directory will be copied to a new template folder.\n* If called from the context menu, the contents of the selected folder will be copied to the new template folder.\n\n## Placeholders\n\nVariable placeholders can be used in templates in the following way:\n\n```\nAuthor: #{author}\nTitle:  #{title}\n```\n\nWhen a file is created from a template containing placeholders, the user is prompted for a value to enter.  Placeholders can also be used in filenames.\n\n* Processing of placeholders can be deactivated by setting the extension property \t\t  \n  ```\n  \"projectTemplates.usePlaceholders\": false\n  ```\n* The format of placeholders is governed by a configurable regular expression which can be set through\n  ```\n  \"projectTemplates.placeholderRegExp\":  \"#{(\\\\w+?)}\"\n  ```\n  The first capture group in the regular expression is used to idenfity the placeholder key.\n* A set of common placeholder key-values pairs can be specified in a dictionary:\n  ```\n  \"projectTemplates.placeholders\": {\n\t   \"author\" : \"John Smith\",\n\t   \"company\": \"Wonderful Widgets Inc.\"\n  }\n  ```\n  These placeholders will be replaced without prompting.\n\n## Templates Location\n\nBy default, this extension expects the project templates to be placed within the user's data directory for VSCode, which is OS-specific.  For the non-portable version of VSCode, this is typically\n```\n$HOME/.config/Code/User/ProjectTemplates                       # Linux\n$HOME/Library/Application Support/Code/User/ProjectTemplates   # macOS\n%APPDATA%\\Code\\User\\ProjectTemplates                           # Windows\n```\nFor the portable version of vscode, or if a `--user-data-dir` is specified at the command-line, the default template location is\n```\n$USER_DATA_DIR/User/ProjectTemplates\n```\n\nYou can change the templates location by adding the following to your user or workspace settings:\n\n```\n\"projectTemplates.templatesDirectory\": \"path/to/my/templates\"\n```\nThis path supports VSCode's predefined variables, such as `${env:HOME}`.\n\n### Samples\n\nA set of sample templates can be found [here](https://github.com/cantonios/vscode-project-templates/tree/master/templates)\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcantonios%2Fvscode-project-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcantonios%2Fvscode-project-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcantonios%2Fvscode-project-templates/lists"}