{"id":15422756,"url":"https://github.com/formulahendry/vscode-auto-close-tag","last_synced_at":"2025-09-03T03:32:13.241Z","repository":{"id":37821726,"uuid":"62144235","full_name":"formulahendry/vscode-auto-close-tag","owner":"formulahendry","description":"Auto Close Tag for Visual Studio Code","archived":false,"fork":false,"pushed_at":"2024-02-06T19:20:50.000Z","size":906,"stargazers_count":182,"open_issues_count":148,"forks_count":53,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-20T04:04:54.777Z","etag":null,"topics":["autocomplete","html","typescript","visual-studio-code","vscode","vscode-extension","xml"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag","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/formulahendry.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":"2016-06-28T13:43:43.000Z","updated_at":"2025-05-19T16:16:50.000Z","dependencies_parsed_at":"2024-02-06T03:31:31.037Z","dependency_job_id":"ce5b37c7-c160-421f-a5a7-6c96966c90af","html_url":"https://github.com/formulahendry/vscode-auto-close-tag","commit_stats":{"total_commits":68,"total_committers":16,"mean_commits":4.25,"dds":"0.22058823529411764","last_synced_commit":"51a5823eea44aeef13866d136574f56f9d13ff36"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/formulahendry/vscode-auto-close-tag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fvscode-auto-close-tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fvscode-auto-close-tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fvscode-auto-close-tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fvscode-auto-close-tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/formulahendry","download_url":"https://codeload.github.com/formulahendry/vscode-auto-close-tag/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fvscode-auto-close-tag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273385007,"owners_count":25096017,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["autocomplete","html","typescript","visual-studio-code","vscode","vscode-extension","xml"],"created_at":"2024-10-01T17:39:26.094Z","updated_at":"2025-09-03T03:32:13.219Z","avatar_url":"https://github.com/formulahendry.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auto Close Tag\n\n[![CI](https://github.com/formulahendry/vscode-auto-close-tag/actions/workflows/main.yml/badge.svg)](https://github.com/formulahendry/vscode-auto-close-tag/actions/workflows/main.yml)\n\nAutomatically add HTML/XML close tag, same as Visual Studio IDE or Sublime Text does.\n\n## Book for VS Code\n\n[《Visual Studio Code 权威指南》](https://union-click.jd.com/jdc?e=jdext-1261348777639735296-0\u0026p=AyIGZRhbHQsWAVIaXxEyEgRdG1sRBxU3EUQDS10iXhBeGlcJDBkNXg9JHUlSSkkFSRwSBF0bWxEHFRgMXgdIMkRxFAUJD1RQZT0cBnwKDE4%2BaDpgB2ILWStbHAIQD1QaWxIBIgdUGlsRBxEEUxprJQIXNwd1g6O0yqLkB4%2B%2FjcePwitaJQIWD1cfWhwKGwVSG1wlAhoDZc31gdeauIyr%2FsOovNLYq46cqca50ytrJQEiXABPElAeEgRSG1kQCxQBUxxZHQQQA1YTXAkDIgdUGlscChECXRs1FGwSD1UbWRALFwRWK1slASJZOxoLRlUXU1NONU9QEkdXWRlJbBUDVB9TFgAVN1caWhcA)：带你深入浅出 VS Code！\n\n![Book](images/book.jpg)\n\n## Note\n\nFrom VS Code 1.16, it has [built-in close tag support](https://code.visualstudio.com/updates/v1_16#_html-close-tags) for HTML, Handlebars and Razor files. This extension is enabled for other languages like XML, PHP, Vue, JavaScript, TypeScript, JSX, TSX, GJS, GTS, and so on. It is configurable.\n\n## Features\n\n* Automatically add closing tag when you type in the closing bracket of the opening tag\n* After closing tag is inserted, the cursor is between the opening and closing tag\n* Set the tag list that would not be auto closed\n* Automatically close self-closing tag\n* Support auto close tag as Sublime Text 3\n* Use Keyboard Shortcut or Command Palette to add close tag manually\n\n## Usages\n\nAfter typing in the closing bracket of the opening tag, the closing tag will be inserted automatically.\n\n![Usage](images/usage.gif)\n\nTo add close tag manually, use shortcut `Alt+.` (`Command+Alt+.` for Mac), or press `F1` and then select/type `Close Tag`\n\n![Usage](images/close-tag.gif)\n\n## Sublime Text 3 Mode\n\nTo automatically add close tag when `\u003c/` is typed (same as Sublime Text 3 does), set the below config as `true`:\n```json\n{\n    \"auto-close-tag.SublimeText3Mode\": true\n}\n```\nThe setting is `false` by default.\n\n![Sublime Text 3](images/st3.gif)\n\n## Configuration\n\nUse `auto-close-tag.enableAutoCloseTag` to set whether to insert close tag automatically (it is `true` by default):\n```json\n{\n    \"auto-close-tag.enableAutoCloseTag\": true\n}\n```\n\nTo set whether to close self-closing tag automatically (e.g. type `\u003cbr`, then type `/`, `\u003e` will be added automatically) (it is `true` by default):\n```json\n{\n    \"auto-close-tag.enableAutoCloseSelfClosingTag\": true\n}\n```\n\nWhether to insert a space before the forward slash in a self-closing tag (it is `false` by default):\n```json\n{\n    \"auto-close-tag.insertSpaceBeforeSelfClosingTag\": false\n}\n```\n\nAdd entry into `auto-close-tag.activationOnLanguage` to set the languages that the extension will be activated. Use `[\"*\"]` to activate for all languages. Below are the default settings:\n```json\n{\n    \"auto-close-tag.activationOnLanguage\": [\n        \"xml\",\n        \"php\",\n        \"blade\",\n        \"ejs\",\n        \"glimmer-js\",\n        \"glimmer-ts\",\n        \"jinja\",\n        \"javascript\",\n        \"javascriptreact\",\n        \"typescript\",\n        \"typescriptreact\",\n        \"plaintext\",\n        \"markdown\",\n        \"vue\",\n        \"liquid\",\n        \"erb\",\n        \"lang-cfml\",\n        \"cfml\",\n        \"HTML (Eex)\"\n    ]\n}\n```\n**Note:** The setting should be set with language id defined in [VS Code](https://github.com/Microsoft/vscode/tree/master/extensions). Taking [javascript definition](https://github.com/Microsoft/vscode/blob/master/extensions/javascript/package.json) as an example, we need to use `javascript` for `.js` and `.es6`, use `javascriptreact` for `.jsx`. So, if you want to enable this extension on `.js` file, you need to add `javascript` in settings.json.\n\nAlternatively you could also exlude the languages where you don't want the extension to be activated. Below is an example:\n```json\n{\n    \"auto-close-tag.disableOnLanguage\": [\n        \"php\",\n        \"python\"\n    ]\n}\n```\n\nYou could also set the tag list that would not be auto closed. Below are the default settings for void elements in HTML per [W3C spec](https://www.w3.org/TR/html-markup/syntax.html#syntax-elements), and you could overwrite it:\n```json\n{\n    \"auto-close-tag.excludedTags\": [\n        \"area\",\n        \"base\",\n        \"br\",\n        \"col\",\n        \"command\",\n        \"embed\",\n        \"hr\",\n        \"img\",\n        \"input\",\n        \"keygen\",\n        \"link\",\n        \"meta\",\n        \"param\",\n        \"source\",\n        \"track\",\n        \"wbr\"\n    ]\n}\n```\n\n`auto-close-tag.fullMode`: Whether to enable both Visual Studio and Sublime Text mode. (Default is **false**)\n\n## Change Log\nSee Change Log [here](CHANGELOG.md)\n\n## Issues\nSubmit the [issues](https://github.com/formulahendry/vscode-auto-close-tag/issues) if you find any bug or have any suggestion.\n\n## Contribution\nFork the [repo](https://github.com/formulahendry/vscode-auto-close-tag) and submit pull requests.\n\n## Blog\nVisit the [blog](https://blogs.msdn.microsoft.com/formulahendry) or the [post](https://blogs.msdn.microsoft.com/formulahendry/2016/06/29/auto-close-tag-for-visual-studio-code/) for more detailed info ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformulahendry%2Fvscode-auto-close-tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fformulahendry%2Fvscode-auto-close-tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformulahendry%2Fvscode-auto-close-tag/lists"}