{"id":15938103,"url":"https://github.com/pluveto/copy-code-as-markdown","last_synced_at":"2026-02-15T23:33:38.129Z","repository":{"id":109019197,"uuid":"393284215","full_name":"pluveto/copy-code-as-markdown","owner":"pluveto","description":"A vscode extension helping you copy code with markdown fences and file name.","archived":false,"fork":false,"pushed_at":"2023-09-22T15:46:17.000Z","size":104,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T08:14:26.969Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/pluveto.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":"2021-08-06T06:54:04.000Z","updated_at":"2023-09-08T08:51:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"30a8d7f0-ca6d-4d1e-a4da-fa94d16bd46d","html_url":"https://github.com/pluveto/copy-code-as-markdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pluveto/copy-code-as-markdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluveto%2Fcopy-code-as-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluveto%2Fcopy-code-as-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluveto%2Fcopy-code-as-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluveto%2Fcopy-code-as-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pluveto","download_url":"https://codeload.github.com/pluveto/copy-code-as-markdown/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluveto%2Fcopy-code-as-markdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29492629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-07T05:21:09.594Z","updated_at":"2026-02-15T23:33:38.113Z","avatar_url":"https://github.com/pluveto.png","language":"JavaScript","readme":"# copy-code-as-markdown\n\nIt helps you to copy code with markdown fences and filename.\n\n## Usage\n\n### Basic\n\nExecute command `copyCodeAsMarkdown: Copy selection code as Markdown`.\n\nYour clipboard then get sth like:\n\n````markdown\n*config.yaml*\n```yaml\ntaxonomies:\n  category: categories\n  tag: tags\n  series: series\n  author: authors\n\nbuild:\n  useResourceCacheWhen: always\n```\n````\n\n### Switch between teplates\n\nExecute command `copyCodeAsMarkdown: copyCodeAsMarkdown: Switch using template`.\n\nHere are some of the builtin templates:\n\n```jsonc\n{\n  \"default\": \"*{filename}* {lineNumber}:\\n```{lang}\\n{text}\\n```\",\n  \"lineRange\": \"*{filename}* {lineNumber} - {lineNumberEnd}:\\n```{lang}\\n{text}\\n```\",\n  \"onlyCode\": \"```{lang}\\n{text}\\n```\",\n  \"onlyPosition\": \"{filename}:{lineNumber}:{colNumber}\"\n}\n```\n\n## Shortcut\n\nThis extension has no default shortcut. You can set it by yourself.\n\nEdit your keybinding setting via UI,\n\nor edit config file for example *c:\\Users\\\u003cUSERNAME\u003e\\AppData\\Roaming\\Code\\User\\keybindings.json*\n\n```jsonc\n    {\n        \"key\": \"ctrl+shift+c\",\n        \"command\": \"copy-code-as-markdown.CopySelectionAsMarkdown\",\n        \"when\": \"editorTextFocus\"\n    },\n```\n\n## Custom template\n\nSetting node is `copyCodeAsMarkdown.template`. Available vars:\n\n+ `{filename}`\n+ `{lineNumber}`\n+ `{lineNumberEnd}`\n+ `{colNumber}`\n+ `{colNumberEnd}`\n+ `{lang}`\n+ `{text}`\n\nExample:\n\n```jsonc\n{\n    \"copyCodeAsMarkdown.template\": \"```{lang}\\n{text}\\n```\"\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpluveto%2Fcopy-code-as-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpluveto%2Fcopy-code-as-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpluveto%2Fcopy-code-as-markdown/lists"}