{"id":18454244,"url":"https://github.com/sri/share-selected-code","last_synced_at":"2026-05-07T01:04:25.774Z","repository":{"id":66806397,"uuid":"144960274","full_name":"sri/share-selected-code","owner":"sri","description":"VSCode plugin to share the selected code to JIRA \u0026 Slack","archived":false,"fork":false,"pushed_at":"2018-08-30T13:02:53.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T15:21:41.542Z","etag":null,"topics":["jira","share","slack","typescript","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=sri.share-selected-code","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/sri.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-08-16T08:33:22.000Z","updated_at":"2018-08-30T13:02:54.000Z","dependencies_parsed_at":"2023-03-08T01:00:33.763Z","dependency_job_id":null,"html_url":"https://github.com/sri/share-selected-code","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sri/share-selected-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sri%2Fshare-selected-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sri%2Fshare-selected-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sri%2Fshare-selected-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sri%2Fshare-selected-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sri","download_url":"https://codeload.github.com/sri/share-selected-code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sri%2Fshare-selected-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272124753,"owners_count":24877720,"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-08-25T02:00:12.092Z","response_time":1107,"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":["jira","share","slack","typescript","vscode","vscode-extension"],"created_at":"2024-11-06T08:03:24.213Z","updated_at":"2026-05-07T01:04:25.745Z","avatar_url":"https://github.com/sri.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Share Selected Code\n\nThis VSCode extension helps you share your code to sites like JIRA and Slack.\nIt formats the selected code according to the site's style.\n\nHere is an example for JIRA:\n\n## 1) If this is the code that you have selected in your VSCode window\n\n```\n    selectByWholeLines(selection: vscode.Selection) {\n        const newStart = new vscode.Position(selection.start.line, 0);\n        const newEnd = (selection.end.character === 0) ?\n            selection.end :\n            new vscode.Position(selection.end.line + 1, 0);\n\n        return new vscode.Selection(newStart, newEnd);\n    }\n```\n\n## 2) And you invoke \"Share Selected Code for JIRA\" command, this will what be copied to your clipboard:\n\n```\n*share-selected-code/src/selection.ts*:\n\n{noformat}\n17     selectByWholeLines(selection: vscode.Selection) {\n18         const newStart = new vscode.Position(selection.start.line, 0);\n19         const newEnd = (selection.end.character === 0) ?\n20             selection.end :\n21             new vscode.Position(selection.end.line + 1, 0);\n22\n23         return new vscode.Selection(newStart, newEnd);\n24     }\n{noformat}\n```\n\n## 3) And here is how it'll look when posted to JIRA:\n\nScreenshot of the above in JIRA:\n\n![JIRA Screenshot](screenshots/jira-screenshot.png \"JIRA Screenshot\")\n\n## Features\n\n* Currently supports: JIRA and Slack\n* Includes line numbers\n* Include the path to the file, relative to the repo path\n* Handles multiple selections correctly\n\n## Requirements\n\nThis has been tested on Visual Studio Code 1.26.0.\n\n## Extension Settings\n\nThere are currently two commands:\n\nShare Selected Code to Slack: *extension.shareSelectedCode.slack*\n\nShare Selected Code to JIRA: *extension.shareSelectedCode.jira*\n\n**Enjoy!!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsri%2Fshare-selected-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsri%2Fshare-selected-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsri%2Fshare-selected-code/lists"}