{"id":22529527,"url":"https://github.com/zserub/vscode-cloner","last_synced_at":"2025-07-07T08:10:35.059Z","repository":{"id":221525455,"uuid":"754631215","full_name":"zserub/vscode-cloner","owner":"zserub","description":"Simple tool that allows to copy your current code written in VS Code into any other running application.","archived":false,"fork":false,"pushed_at":"2024-03-11T08:43:09.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T08:07:29.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zserub.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-02-08T13:15:33.000Z","updated_at":"2024-02-08T13:17:56.000Z","dependencies_parsed_at":"2025-06-13T05:39:52.814Z","dependency_job_id":"8143f21e-11b3-4839-97c4-56a9bb4e8742","html_url":"https://github.com/zserub/vscode-cloner","commit_stats":null,"previous_names":["zserub/vscode-cloner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zserub/vscode-cloner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zserub%2Fvscode-cloner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zserub%2Fvscode-cloner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zserub%2Fvscode-cloner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zserub%2Fvscode-cloner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zserub","download_url":"https://codeload.github.com/zserub/vscode-cloner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zserub%2Fvscode-cloner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264040938,"owners_count":23548070,"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-12-07T07:15:16.461Z","updated_at":"2025-07-07T08:10:35.018Z","avatar_url":"https://github.com/zserub.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VS Code-Cloner\n\nSimple tool that allows to copy your current code written in VS Code into any other running application.\n\n\u003eDon't run duplicated terget applications or it will choose one 'randomly'.\n\n**Warning: Currently it uses hotkey simulation. If something goes wrong it can delete anything on your computer, use it on your own risk.**\n\n### Requirements:\n- [Python](https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe)\n- [Run on Save extension](https://marketplace.visualstudio.com/items?itemName=pucelle.run-on-save)\n\n## Setup/usage\n\nChange `targeted_app` to the desired window in the script.\n\nIn VS Code go to Settings **--\u003e** Extensions **--\u003e** Run on Save\n\nClick on `Edit in settings.json` and paste the following:\n\n```\n\"runOnSave.shell\": \"cmd.exe\",\n    \"runOnSave.commands\": [\n        {\n            \"match\": \".*\\\\.src\",\n            \"command\": \"python Path/to/code_cloner.py \u003c ${file}\",\n            \"runIn\": \"backend\"\n        }\n    ],\n```\n\u003eEnsure that the path is correct, and match has been set up correctly (it uses regex search)\n\n`Ctrl + Shift + P` **--\u003e** `Run on Save: Enable`\n\nNow when you save your current code it will be pasted in the targeted application.\n\nThe targeted app can be minimised, it will pop up automatically.\n\nTo see logs, open output in VS Code (`Ctrl + Shift + U`) and select `Run on Save` in the dropdown menu.\n\n## Knowns issues\n- If you use `Alt + Tab` to switch to the targeted application and your cursor is not automatically in the writable area (ie. you can't type), the script will not work.\n- If there is an issue with the settings.json file, no error message will be displayed and the program won't execute. Log probably stays empty.\n- Encoding has to be the same. For example if you copy from `UTF-8 with BOM` to simple UTF-8 you will get strange characters.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzserub%2Fvscode-cloner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzserub%2Fvscode-cloner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzserub%2Fvscode-cloner/lists"}