{"id":16586091,"url":"https://github.com/windwp/vscode-expand-region","last_synced_at":"2025-03-21T12:33:47.306Z","repository":{"id":80980408,"uuid":"50038921","full_name":"windwp/vscode-expand-region","owner":"windwp","description":"porting sublime-expand-region to visual code","archived":false,"fork":false,"pushed_at":"2023-12-11T08:42:54.000Z","size":217,"stargazers_count":57,"open_issues_count":21,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T22:50:35.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/windwp.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-01-20T15:25:05.000Z","updated_at":"2023-09-10T08:45:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"2f0de35a-34bd-47a6-8ca9-e8e650e482f4","html_url":"https://github.com/windwp/vscode-expand-region","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/windwp%2Fvscode-expand-region","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwp%2Fvscode-expand-region/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwp%2Fvscode-expand-region/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwp%2Fvscode-expand-region/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/windwp","download_url":"https://codeload.github.com/windwp/vscode-expand-region/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221815401,"owners_count":16885168,"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-10-11T22:50:34.526Z","updated_at":"2024-10-28T10:10:33.625Z","avatar_url":"https://github.com/windwp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/windwp/vscode-expand-region.svg?branch=master)](https://travis-ci.org/windwp/vscode-expand-region)\n# vscode-expand-region\nporting sublime-expand-region to visual code\nhttps://github.com/aronwoost/sublime-expand-region\n\n### Only support javascript and html now ,it will support python and latex in a future\n\n### JavaScript\n![](https://raw.githubusercontent.com/windwp/vscode-expand-region/master/image/javascript.gif)\n1. Expand selection to word\n2. Expand selection to quotes (content only)\n3. Expand selection to quotes (with quotes)\n4. Expand selection to square braces\n5. Expand selection to expression\n6. Expand selection to content of braces (all arguments in this case)\n7. Expand selection to line\n8. Expand selection to function body (w/o curly brace)\n9. Expand selection to function body (with curly brace)\n\nand so on...\n\n\n### HTML/PHP\n\n![](https://raw.githubusercontent.com/windwp/vscode-expand-region/master/image/html.gif)\n\n1. Expand selection to word\n2. Expand selection to quotes (content only)\n3. Expand selection to quotes (with quotes)\n4. Expand selection to complete self closing tag\n5. Expand selection to parent node content\n6. Expand selection to complete node\n7. Expand selection to parent node content\n\nand so on...\n\n\n## Using\n- Set a keyboard shortcut.\n  Open \"Key Bindings\" and add following code:\n``` js\n{\n    \"key\": \"ctrl+w\",\"command\": \"expand_region\", \"when\": \"editorTextFocus\"\n},\n{\n    \"key\": \"ctrl+shift+w\",\"command\": \"undo_expand_region\", \"when\": \"editorTextFocus \u0026\u0026 editorHasSelection\"\n}\n```\n## development\n1. npm install\n2. npm compile (compile typescript)\n3. npm test:watch (run mocha for test)\n\n# Changelog\n## 0.1.2\n * support php\n\n## 0.1.0\n  * support multi cursor\n  * fix issue #10 #7\n\n## 0.0.2\n  * add feature undo_expand_region\n## 0.0.1\n\n  * first release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindwp%2Fvscode-expand-region","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindwp%2Fvscode-expand-region","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindwp%2Fvscode-expand-region/lists"}