{"id":28940535,"url":"https://github.com/yhotta240/paste-as-markdown-codeblock","last_synced_at":"2026-04-29T22:34:24.071Z","repository":{"id":296737375,"uuid":"994268514","full_name":"yhotta240/paste-as-markdown-codeblock","owner":"yhotta240","description":"VS Code extension that pastes copied code into the editor as a Markdown-formatted code block.","archived":false,"fork":false,"pushed_at":"2025-06-11T18:26:33.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-11T19:56:38.491Z","etag":null,"topics":["code-block","copy-paste","javascript","markdown","paste","typescript","vsc","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=yhotta240.paste-as-markdown-codeblock","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/yhotta240.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-06-01T15:29:14.000Z","updated_at":"2025-06-11T18:09:41.000Z","dependencies_parsed_at":"2025-06-02T03:19:22.579Z","dependency_job_id":"3857727a-b2fa-4f0e-8d9a-e74265410da3","html_url":"https://github.com/yhotta240/paste-as-markdown-codeblock","commit_stats":null,"previous_names":["yhotta240/paste-as-markdown-codeblock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yhotta240/paste-as-markdown-codeblock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhotta240%2Fpaste-as-markdown-codeblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhotta240%2Fpaste-as-markdown-codeblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhotta240%2Fpaste-as-markdown-codeblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhotta240%2Fpaste-as-markdown-codeblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yhotta240","download_url":"https://codeload.github.com/yhotta240/paste-as-markdown-codeblock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhotta240%2Fpaste-as-markdown-codeblock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261394875,"owners_count":23152301,"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":["code-block","copy-paste","javascript","markdown","paste","typescript","vsc","vscode-extension"],"created_at":"2025-06-23T01:30:33.578Z","updated_at":"2026-04-29T22:34:24.066Z","avatar_url":"https://github.com/yhotta240.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Paste as Markdown Codeblock\n\n`paste-as-markdown-codeblock` is a Visual Studio Code extension that lets you paste code or text from the clipboard as a Markdown code block.\n\n## Features\n\n- **Automatic Language Detection**: The extension automatically detects the programming language from your clipboard content and suggests it as the default language for the code block.\n\n- Paste the copied code as a Markdown code block using `Ctrl+Alt+V`\n\n- Press `Ctrl+Space` to enter a language identifier (e.g., `JavaScript`, `Python`, `TypeScript`) or select from detected/configured languages.\n\n- Right-click in the editor and select \"Paste as Markdown CodeBlock\" to use the command from the context menu.\n\n\u003cbr\u003e\n\u003cimg src=\"https://lh3.googleusercontent.com/d/146nlX5-7UHnvCKRrJeIbUoIePaCgSC9I\" width=\"600\" \u003e\n\n\u003cbr\u003e\n\n### How Language Detection Works\n\nWhen you paste code, the extension analyzes the clipboard content using keyword and pattern matching to identify the programming language. Supported languages include:\n- Python, JavaScript, TypeScript, Java, C++, Go, Rust, Ruby, PHP\n- Bash, HTML, CSS, JSON, SQL, YAML, XML\n- And more...\n\nIf a language is confidently detected, it will be pre-selected in the code block. If detection is uncertain, the extension falls back to your configured default language.\n\nNote: Automatic language detection is disabled by default. To enable it, turn on `pasteAsMarkdownCodeblock.enableAutoDetection` in your settings.\n\n## Requirements\n\nNo special requirements or dependencies are needed.\n\n- Visual Studio Code version 1.xx or later\n\n## Extension Settings\n\nThis extension provides the following settings:\n\n- `pasteAsMarkdownCodeblock.defaultLanguage`\u003cbr\u003e\nSpecifies the default language identifier used when pasting a code block if automatic detection fails or is uncertain.\u003cbr\u003e\nDefault: `\"plaintext\"`\n\n- `pasteAsMarkdownCodeblock.languages`\u003cbr\u003e\nDefines a list of language identifiers available for selection.\nYou can customize this list to include only the languages you frequently use.\nThe auto-detected language (if any) will be added to this list automatically when pasting.\n\nDefault:\n\n```json\n[\n  \"plaintext\",\n  \"javascript\",\n  \"typescript\",\n  \"python\",\n  \"cpp\",\n  \"java\",\n  \"bash\",\n  \"html\",\n  \"css\",\n  \"json\"\n]\n```\n\nThese settings can be configured from the Settings UI or by editing your `settings.json` file directly.\n\n### Keyboard Shortcut\nPress `Ctrl+Alt+V` to paste the copied code as a Markdown code block (only when the editor is focused).\n\n## Known Issues\n\n- The language name may not always be correctly inserted, depending on the input.\n\n- The command requires selected or copied text. If nothing is provided, no output will be generated.\n\n## Release Notes\n\n### 1.1.0\n\n- **New Feature**: Automatic programming language detection from clipboard content\n  - Detects languages using keyword and pattern matching\n  - Supports 15+ popular programming languages\n  - Falls back to default language when detection is uncertain\n  - Maintains backward compatibility with existing configurations\n\n### 1.0.0\n\n- Initial release\n- Added functionality to paste selected text as a Markdown code block\n\n## Following extension guidelines\n\nThis extension follows the official VS Code extension development guidelines.\n\n- [Extension Guidelines](https://code.visualstudio.com/api/references/extension-guidelines)\n\n## License\n\nThis extension is licensed under the [MIT License](./LICENSE).\n\nThanks for using this extension! \u003cbr\u003e\nFeel free to report bugs or request features via the Issues page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhotta240%2Fpaste-as-markdown-codeblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyhotta240%2Fpaste-as-markdown-codeblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhotta240%2Fpaste-as-markdown-codeblock/lists"}