{"id":13670707,"url":"https://github.com/Gruntfuggly/auto-snippet","last_synced_at":"2025-04-27T13:32:48.501Z","repository":{"id":91091401,"uuid":"156885603","full_name":"Gruntfuggly/auto-snippet","owner":"Gruntfuggly","description":"A vscode extension to automatically insert a predefined snippet when a file is created, or an empty file is opened.","archived":false,"fork":false,"pushed_at":"2021-06-14T11:23:14.000Z","size":22,"stargazers_count":14,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-11T08:43:08.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gruntfuggly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-11-09T16:03:54.000Z","updated_at":"2024-04-09T18:00:06.000Z","dependencies_parsed_at":"2024-01-14T16:29:30.964Z","dependency_job_id":null,"html_url":"https://github.com/Gruntfuggly/auto-snippet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gruntfuggly%2Fauto-snippet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gruntfuggly%2Fauto-snippet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gruntfuggly%2Fauto-snippet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gruntfuggly%2Fauto-snippet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gruntfuggly","download_url":"https://codeload.github.com/Gruntfuggly/auto-snippet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251145673,"owners_count":21543079,"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":[],"created_at":"2024-08-02T09:00:48.305Z","updated_at":"2025-04-27T13:32:43.483Z","avatar_url":"https://github.com/Gruntfuggly.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Auto Snippet\n\nThis extension automatically inserts a predefined snippet when a file is created, or an empty file is opened.\n\nThis allows templates for classes etc. to be inserted with all the benefits of placeholders and regular expressions, etc.\n\n## Configuration\n\nThere is one configuration setting which maps filename globs (or language IDs) to snippet names. For example, to match a typescript filename in any folder, use one of the following:\n\n- set `\"pattern\"` to `\"**/*.ts\"`\n- set `\"regex\"` to `\".*\\.ts\"`\n- set `\"language\"` to `\"typescript\"`.\n\nYou can also specify an array of commands to execute after inserting the snippet. *Note: The commands are not executed synchronously. If no snippet is configured, the commands are still run*.\n\nExample:\n\n```javascript\nautoSnippet.snippets: [\n    { \"pattern\": \"**/ut-*.cpp\", \"snippet\": \"ut-template\" },\n    { \"pattern\": \"**/*.h\", \"snippet\": \"header-template\" },\n    { \"pattern\": \"**/*.cpp\", \"snippet\": \"body-template\" },\n    { \"language\": \"javascript\", \"snippet\": \"template\", \"commands\":[ \"editor.action.commentLine\" ] }\n]\n```\n\n*Note: The patterns are matched in order of definition. The first one that matches will be used.*\n\nUse F1, **Preferences: Configure User Snippets** to configure your snippets. For more information on configuration snippets, see [here](https://code.visualstudio.com/docs/editor/userdefinedsnippets).\n\n### Output Channel\n\nThere is also an output channel which can be enabled via the settings. This can be used to check pattern matches, etc.\n\n## Installing\n\nYou can install the latest version of the extension via the Visual Studio Marketplace [here](https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.auto-snippet).\n\n### Source Code\n\nThe source code is available on GitHub [here](https://github.com/Gruntfuggly/auto-snippet).\n\n## Credits\n\nIcon made by [Freepik](https://www.freepik.com) from [www.flaticon.com](https://www.flaticon.com/) is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGruntfuggly%2Fauto-snippet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGruntfuggly%2Fauto-snippet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGruntfuggly%2Fauto-snippet/lists"}