{"id":26175439,"url":"https://github.com/mikeamputer/resharper-array-comment-indexing","last_synced_at":"2025-07-11T13:40:19.008Z","repository":{"id":281057305,"uuid":"944064807","full_name":"MikeAmputer/resharper-array-comment-indexing","owner":"MikeAmputer","description":"ReSharper and Rider plugin to add /*index*/ comments before each element in a C# array initializer","archived":false,"fork":false,"pushed_at":"2025-03-06T18:22:41.000Z","size":2455,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T19:26:49.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/MikeAmputer.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":"2025-03-06T18:15:52.000Z","updated_at":"2025-03-06T18:22:45.000Z","dependencies_parsed_at":"2025-03-06T19:37:20.162Z","dependency_job_id":null,"html_url":"https://github.com/MikeAmputer/resharper-array-comment-indexing","commit_stats":null,"previous_names":["mikeamputer/resharper-array-comment-indexing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeAmputer%2Fresharper-array-comment-indexing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeAmputer%2Fresharper-array-comment-indexing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeAmputer%2Fresharper-array-comment-indexing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MikeAmputer%2Fresharper-array-comment-indexing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MikeAmputer","download_url":"https://codeload.github.com/MikeAmputer/resharper-array-comment-indexing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243112169,"owners_count":20238183,"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":"2025-03-11T20:56:33.330Z","updated_at":"2025-03-11T20:56:33.776Z","avatar_url":"https://github.com/MikeAmputer.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ArrayCommentIndexing for Rider and ReSharper\n\n[![Rider](https://img.shields.io/jetbrains/plugin/v/com.github.mikeamputer.arraycommentindexing.svg?label=Rider\u0026colorB=0A7BBB\u0026style=for-the-badge\u0026logo=rider)](https://plugins.jetbrains.com/plugin/26764-array-comments-indexing)\n[![ReSharper](https://img.shields.io/resharper/v/ReSharperPlugin.ArrayCommentIndexing.svg?label=ReSharper\u0026colorB=0A7BBB\u0026style=for-the-badge\u0026logo=resharper)](https://plugins.jetbrains.com/plugin/26757-array-comment-indexing)\n\nSometimes you have to use indexed placeholders with `string.Format()` and [you are not alone](https://github.com/dotnet/runtime/discussions/100259). Keeping track of array element positions can be difficult. This plugin helps maintain clarity by adding and updating index comments via Context Actions.\n\n```c#\nconst string notificationTemplate = @\"Dear {0},\n\nYour recent transaction (ID: {1}) of {2:C} on {3} has been processed.\nThe payment method used: {4}.\nStatus: {5}.\n\nIf you have any questions, please contact {6}.\n\nBest regards,\nYour Bank\";\n\nvar args = new object[]\n{\n    /*0*/ user.GetProfile().GetFullName(),\n    /*1*/ transaction.GetDetails().GetTransactionId(),\n    /*2*/ transaction.GetAmount().CalculateWithTax(user.GetTaxRate()),\n    /*3*/ transaction.GetTimestamp().ToString(\"MMMM dd, yyyy HH:mm\"),\n    /*4*/ user.GetPreferredPaymentMethod().GetDisplayName(),\n    /*5*/ transaction.GetStatus().ToFriendlyString(user.GetLocale()),\n    /*6*/ bank.GetSupportService().GetContactEmail(user.GetRegion(), true)\n};\n\nstring notificationMessage = string.Format(notificationTemplate, args);\n```\n\n## Getting Started\n1. Install the plugin from the JetBrains Marketplace (an IDE restart may be required).\n2. Open the `Context Actions` menu (**Alt+Enter**) inside an array initializer.\n3. Select `Add Index Comments to Array Elements` to annotate the array with index comments.\n4. To update indexes, run the action again.\n\n## Build\nRun `./gradlew buildPlugin` from the solution root directory. The `output` directory will contain two files:\n- `.nupkg` for ReSharper\n- `.zip` for Rider.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeamputer%2Fresharper-array-comment-indexing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeamputer%2Fresharper-array-comment-indexing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeamputer%2Fresharper-array-comment-indexing/lists"}