{"id":20547918,"url":"https://github.com/emoacht/trimcopy","last_synced_at":"2026-03-03T09:31:11.396Z","repository":{"id":45870983,"uuid":"49081657","full_name":"emoacht/TrimCopy","owner":"emoacht","description":"A Visual Studio extension to copy code block trimming leading white spaces while keeping indentation structure","archived":false,"fork":false,"pushed_at":"2021-12-01T00:03:06.000Z","size":266,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-04T16:50:35.937Z","etag":null,"topics":["trim","visual-studio"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=emoacht.TrimCopy","language":"C#","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/emoacht.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-05T17:33:05.000Z","updated_at":"2023-04-20T10:10:16.000Z","dependencies_parsed_at":"2022-08-31T02:11:13.478Z","dependency_job_id":null,"html_url":"https://github.com/emoacht/TrimCopy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/emoacht/TrimCopy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoacht%2FTrimCopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoacht%2FTrimCopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoacht%2FTrimCopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoacht%2FTrimCopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emoacht","download_url":"https://codeload.github.com/emoacht/TrimCopy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emoacht%2FTrimCopy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30039884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T06:58:30.252Z","status":"ssl_error","status_checked_at":"2026-03-03T06:58:15.329Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["trim","visual-studio"],"created_at":"2024-11-16T02:11:14.080Z","updated_at":"2026-03-03T09:31:11.265Z","avatar_url":"https://github.com/emoacht.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Trim Copy\r\n\r\nTrim Copy is a Visual Studio extension to copy selected code block to the clipboard trimming leading white spaces while keeping indentation structure. It allows the user to copy the code in text editor of Visual Studio, trim unnecessary white spaces and paste it into a document in Markdown or other format by one step.\r\n\r\n## Requirements\r\n\r\n * Visual Studio 2017, 2019, 2022\r\n * .NET Framework 4.8\r\n\r\nIf you have only installed older version of .NET Framework, use [VSIX package](https://github.com/emoacht/TrimCopy/releases/download/2.1/TrimCopy.vsix) which is built for .NET Framewrok 4.6.\r\n\r\n## Keyboard shortcuts\r\n\r\nThe keyboard shortcuts can be assigned by Visual Studio's options settings. See [Identify and customize keyboard shortcuts in Visual Studio](https://docs.microsoft.com/en-us/visualstudio/ide/identifying-and-customizing-keyboard-shortcuts-in-visual-studio).\r\n\r\nOpen `Options`, go to `Keyboard` and find this extension's commands by searching __TrimCopy__ in `Show commands containing` box.\r\n\r\n![Screenshot](Images/screenshot4.png)\r\n\r\nSet shortcut keys as you wish.\r\n\r\n## Development\r\n\r\nEach version of Microsoft.VisualStudio.SDK meta-package is compatible with corresponding version of Visual Studio.\r\n\r\n| Microsoft.VisualStudio.SDK | Compatible Visual Studio |\r\n|----------------------------|--------------------------|\r\n| 15.x                       | 2017 (15.x), 2019 (16.x) |\r\n| 16.x                       | 2019 (16.x)              |\r\n| 17.x                       | 2022 (17.x)              | \r\n\r\nThus each project is compatible with corresponding version of Visual Studio as shown below.\r\n\r\n| Product name   | Project name       | Microsoft.VisualStudio.SDK | Compatible Visual Studio |\r\n|----------------|--------------------|----------------------------|--------------------------|\r\n| Trim Copy 2019 | TrimCopy.VSIX.2019 | 15.x                       | 2017, 2019               |\r\n| Trim Copy 2022 | TrimCopy.VSIX.2022 | 17.x                       | 2022                     |\r\n\r\nDo not accidentally update Microsoft.VisualStudio.SDK of TrimCopy.VSIX.2019.\r\n\r\nWhen updating project version, edit `productId` parameter of `InstalledProductRegistration` attribute of `TrimCopyPackage` class as well.\r\n\r\nTo run an extension in debug mode inside [experimental instance](https://docs.microsoft.com/en-us/visualstudio/extensibility/the-experimental-instance) of Visual Studio, the following settings are required in __Debug__ pane of project properties.\r\n\r\n - In __Start Action__, select __Start external program__ and input the path to Visual Studio executable. The typical path would be `C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\devenv.exe`.\r\n - In __Start Options__, fill __Command line arguments__ with `/rootsuffix Exp`.\r\n\r\nThese are default for Extensibility VSIX project and written in csproj.user file but that file is not included in the repository in principle.\r\n\r\n## History\r\n\r\nVer 2.4 2021-12-1\r\n\r\n - Improve method to format text\r\n\r\nVer 2.3 2021-11-23\r\n\r\n - Divide projects to support Visual Studio 2022\r\n\r\nVer 2.2 2021-8-1\r\n\r\n - Sort out references\r\n\r\nVer 2.1 2019-12-15\r\n\r\n - Modified settings in Options\r\n\r\nVer 2.0 2017-2-19\r\n\r\n - Converted to be compatible with Visual Studio 2017\r\n\r\nVer 1.2 2016-5-28\r\n\r\n - Fixed default values in the settings\r\n\r\nVer 1.1 2016-4-24\r\n\r\n - Modified vsix manifest for Visual Studio \"15\"\r\n\r\nVer 1.0 2016-1-6\r\n\r\n - Initial release\r\n\r\n## License\r\n\r\n - MIT License\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femoacht%2Ftrimcopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femoacht%2Ftrimcopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femoacht%2Ftrimcopy/lists"}