{"id":20294130,"url":"https://github.com/austinleegordon/vscode-schema-dot-org","last_synced_at":"2026-05-19T04:37:11.490Z","repository":{"id":143736826,"uuid":"152942522","full_name":"AustinLeeGordon/vscode-schema-dot-org","owner":"AustinLeeGordon","description":"Code snippets for Schema.org schemas","archived":false,"fork":false,"pushed_at":"2020-04-06T06:04:24.000Z","size":267,"stargazers_count":3,"open_issues_count":10,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T05:29:23.301Z","etag":null,"topics":["json-ld","schema","schema-org","snippets","vscode","vscode-extension","vscode-snippets"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=austinleegordon.vscode-schema-dot-org","language":"JavaScript","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/AustinLeeGordon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-14T05:29:37.000Z","updated_at":"2023-10-06T13:44:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac890315-a556-40ec-8912-b819e32bdd1b","html_url":"https://github.com/AustinLeeGordon/vscode-schema-dot-org","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AustinLeeGordon/vscode-schema-dot-org","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinLeeGordon%2Fvscode-schema-dot-org","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinLeeGordon%2Fvscode-schema-dot-org/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinLeeGordon%2Fvscode-schema-dot-org/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinLeeGordon%2Fvscode-schema-dot-org/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AustinLeeGordon","download_url":"https://codeload.github.com/AustinLeeGordon/vscode-schema-dot-org/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinLeeGordon%2Fvscode-schema-dot-org/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502070,"owners_count":23618550,"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":["json-ld","schema","schema-org","snippets","vscode","vscode-extension","vscode-snippets"],"created_at":"2024-11-14T15:27:49.530Z","updated_at":"2026-05-19T04:37:06.470Z","avatar_url":"https://github.com/AustinLeeGordon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VS Code Schema.org Snippets\n\n[![Visual Studio Marketplace Version](https://vsmarketplacebadge.apphb.com/version/austinleegordon.vscode-schema-dot-org.svg)](https://marketplace.visualstudio.com/items?itemName=austinleegordon.vscode-schema-dot-org) [![Build Status](https://travis-ci.com/AustinLeeGordon/vscode-schema-dot-org.svg?branch=master)](https://travis-ci.com/AustinLeeGordon/vscode-schema-dot-org)\n\nThis extension includes [VS Code](https://code.visualstudio.com/) snippets for implementing [Schema.org](https://www.schema.org/) JSON-LD. Currently working on snippets following the [Google Structured Data Guide](https://developers.google.com/search/docs/guides/intro-structured-data). Snippets include properties that are both required and recommended by Google. Structured data is very flexible, and certain optional properties may have undesired results. Follow the [Google Structured Data Guide](https://developers.google.com/search/docs/guides/intro-structured-data) to ensure the intended use.\n\n## Installation\n\nLaunch the Command Pallete with `Ctrl` + `Shift` + `P` (Windows/Linux) or `Cmd` + `Shift` + `P` (OSX) and type Extensions. From there, you can search for this extension and click `Install`. You can also install it on the [VS Code Extensions Marketplace](https://marketplace.visualstudio.com/items?itemName=austinleegordon.vscode-schema-dot-org).\n\n## Supported Languages/File Extensions\n\n* JavaScript (.js)\n* TypeScript (.ts)\n* JavaScript React (.jsx)\n* TypeScript React (.tsx)\n\n## Usage\n\nType part of a snippet and press `enter` or `tab`. If tab completion is disabled, go to `File` + `Preferences` + `Settings` (Windows/Linux) or `Code` + `Preferences` + `Settings` (OSX) and set `editor.tabCompletion` to `true`.\n\n## Snippets\n\n| Snippet | Content |\n| ------- | ------- |\n| `breadcrumb-list-schema` | Breadcrumb List Schema ([Google](https://developers.google.com/search/docs/data-types/breadcrumb), [Schema.org](https://schema.org/BreadcrumbList)) |\n| `corporate-contact-schema` | Corporate Contact Schema ([Google](https://developers.google.com/search/docs/data-types/corporate-contact)) |\n| `event-schema` | Event Schema ([Google](https://developers.google.com/search/docs/data-types/event), [Schema.org](https://schema.org/Event)) |\n| `job-posting-schema` | Job Posting Schema ([Google](https://developers.google.com/search/docs/data-types/job-posting), [Schema.org](https://schema.org/JobPosting)) |\n| `product-aggregate-offer-schema` | Product Aggregate Offer Schema ([Google](https://developers.google.com/search/docs/data-types/product), [Schema.org](https://schema.org/AggregateOffer)) |\n| `product-schema` | Product Schema ([Google](https://developers.google.com/search/docs/data-types/product), [Schema.org](https://schema.org/Product)) |\n| `recipe-schema` | Recipe Schema ([Google](https://developers.google.com/search/docs/data-types/recipe), [Schema.org](https://schema.org/Recipe)) |\n| `script-json-ld` | JSON-LD Script Tag |\n| `sitelinks-searchbox-schema` | Sitelinks Searchbox Schema ([Google](https://developers.google.com/search/docs/data-types/sitelinks-searchbox), [Schema.org](https://schema.org/WebSite)) |\n| `video-schema` | Video Schema ([Google](https://developers.google.com/search/docs/data-types/video), [Schema.org](https://schema.org/VideoObject)) |\n\n## Contributing\n\n### Overview\n\nThe project utilizes a simple build system where varaibles can be defined in the `src/snippets.json` file and injected on build. Variables make it easier to add and maintain things such as ISO standards for tab completion suggestions.\n\n#### Example:\n\n```js\n{\n// ...\n    \"Schema Name\": {\n        \"prefix\": \"schema-name\",\n        \"description\": \"Schema Description\",\n        \"body\": [\n            \"{\",\n            \"\\t\\\"@context\\\": \\\"http://schema.org\\\",\",\n            \"\\t\\\"@type\\\": \\\"SchemaName\\\",\",\n            \"\\t\\\"examplekey\\\": \\\"${1:|\u003c%example%\u003e|}\\\"\", // \u003c%example%\u003e will be replaced on build\n            \"}\"\n        ]\n    },\n// ...\n}\n```\n\nDefining the variable in the `src/templates.js` file:\n\n```js\n// ...\nfunction getTemplates() {\n\n    // ...\n\n    // Example\n    let example = [\"Suggestion 1\", \"Suggestion 2\", \"Suggestion 3\"];\n    example = example.join(','); // Format\n\n    return {\n        example, // The returned key must be the same as the variable name used in the snippet: \u003c%example%\u003e\n        // ...\n    };\n}\n\nmodule.exports = getTemplates();\n```\n\nNow whenever you run `npm run build`, the renderer will replace every occurrence of `\u003c%example%\u003e` with `Suggestion 1,Suggestion 2,Suggestion 3` and export the file to the `snippets/` directory.\n\n## License\n\nMIT © [Austin Gordon](https://www.austinleegordon.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinleegordon%2Fvscode-schema-dot-org","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustinleegordon%2Fvscode-schema-dot-org","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinleegordon%2Fvscode-schema-dot-org/lists"}