{"id":13718378,"url":"https://github.com/8LWXpg/PowerToysRun-PluginTemplate","last_synced_at":"2025-05-07T10:31:57.984Z","repository":{"id":220309614,"uuid":"751300006","full_name":"8LWXpg/PowerToysRun-PluginTemplate","owner":"8LWXpg","description":"Template for PowerToysRun Plugin in Visual Studio","archived":false,"fork":false,"pushed_at":"2024-11-04T05:34:41.000Z","size":31,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-04T06:25:28.686Z","etag":null,"topics":["powertoys","powertoys-run","powertoys-run-plugin","visual-studio","visual-studio-template"],"latest_commit_sha":null,"homepage":"","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/8LWXpg.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-02-01T10:33:27.000Z","updated_at":"2024-11-04T05:34:44.000Z","dependencies_parsed_at":"2024-11-04T06:34:40.031Z","dependency_job_id":null,"html_url":"https://github.com/8LWXpg/PowerToysRun-PluginTemplate","commit_stats":null,"previous_names":["8lwxpg/powertoysrun-plugintemplate"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8LWXpg%2FPowerToysRun-PluginTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8LWXpg%2FPowerToysRun-PluginTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8LWXpg%2FPowerToysRun-PluginTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8LWXpg%2FPowerToysRun-PluginTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8LWXpg","download_url":"https://codeload.github.com/8LWXpg/PowerToysRun-PluginTemplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224585518,"owners_count":17335870,"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":["powertoys","powertoys-run","powertoys-run-plugin","visual-studio","visual-studio-template"],"created_at":"2024-08-03T01:00:25.295Z","updated_at":"2025-05-07T10:31:57.966Z","avatar_url":"https://github.com/8LWXpg.png","language":"C#","funding_links":[],"categories":["Resources"],"sub_categories":[],"readme":"![title image](https://github.com/8LWXpg/PowerToysRun-PluginTemplate/assets/105704427/0a6476f8-91b0-4245-be5b-9ec51f4a6a76)\n\n# PowerToysRun Plugin Template\n\nThis is a template for Visual Studio to create a PowerToys Run plugin.\n\nSame content but with dotnet so you don't need to open Visual Studio: [PowerToysRun-DotentPluginTemplate](https://github.com/8LWXpg/PowerToysRun-DotentPluginTemplate).\n\n## How to customize\n\n### Prerequisite\n\n- `7z` (from 7zip or NanaZip) available in `PATH`.\n\n### Steps\n\n1. Clone or fork the repo.\n1. Make your desired change (like changing `indent_style` and `end_of_line` in `.editorconfig`).\n1. run `./scripts/build.ps1 compress -copy` in PowerShell.\n\n## How to use\n\n### Prerequisite\n\n- [gsudo](https://github.com/gerardog/gsudo) \\\n  Or if you're using Windows later than Windows 11 24H2, change `sudo {...}` in `debug.ps1` to `sudo powershell {...}`.\n\n### Usage\n\n1. Download the latest release.\n1. Move the zip to `~\\Documents\\Visual Studio 2022\\Templates\\ProjectTemplates`.\n1. Change `$ptPath` in `debug.ps1` to your PowerToys install location, i.e. `$env:LOCALAPPDATA\\PowerToys` for user scope install.\n1. Open Visual Studio 2022 and select the template named `PowerToys Run Plugin Template`.\n1. Follow TODOs in `Main.cs`.\n\n### Scripts\n\n- `debug.ps1` - move debug files to destination.\n- `release.ps1` - create release on github with github cli.\n\n## How to debug\n\n1. Build the project.\n1. Run `debug.ps1`.\n1. Attach to the process `PowerToys.PowerLauncher`.\n\n## Demo\n\nCheck [ProcessKiller](https://github.com/8LWXpg/PowerToysRun-ProcessKiller).\n\n## Template structure\n\n```plaintext\nMyPlugin\n│   MyPlugin.sln\n└───MyPlugin\n    │   debug.ps1\n    │   .editorconfig\n    │   MyPlugin.csproj\n    │   Main.cs\n    │   plugin.json\n    │   README.md\n    │   release.ps1\n    ├───Images\n    │       Icon.dark.png\n    │       Icon.light.png\n    └───Properties\n            Resources.Designer.cs\n            Resources.resx\n\n```\n\n## Update the template\n\nVisual Studio 2022 caches the templates, so you can't simply replace the zip file.\n\n1. Remove previous versions of the template.\n1. Start Visual Studio 2022 then select `Create a new project`, this loads the templates.\n1. Close Visual Studio 2022 or click `Back`.\n1. Move the new zip to `~\\Documents\\Visual Studio 2022\\Templates\\ProjectTemplates`.\n\n## Help improve this template\n\nIf you have any suggestions or improvements, feel free to open an issue or a pull request.\n\n### Useful links\n\n- [Template parameters](https://learn.microsoft.com/en-us/visualstudio/ide/template-parameters?view=vs-2022)\n- [Template schema reference](https://learn.microsoft.com/en-us/visualstudio/extensibility/visual-studio-template-schema-reference?view=vs-2022)\n- [Template tags](https://learn.microsoft.com/en-us/visualstudio/ide/template-tags?view=vs-2022)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8LWXpg%2FPowerToysRun-PluginTemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8LWXpg%2FPowerToysRun-PluginTemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8LWXpg%2FPowerToysRun-PluginTemplate/lists"}