{"id":16111011,"url":"https://github.com/nikiforovall/surround-with-csharp","last_synced_at":"2026-02-25T10:38:51.456Z","repository":{"id":42721480,"uuid":"274640631","full_name":"NikiforovAll/surround-with-csharp","owner":"NikiforovAll","description":"Brings support of surround-with functionality to vscode for C#. ","archived":false,"fork":false,"pushed_at":"2022-12-30T21:01:32.000Z","size":1313,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-10-28T09:26:02.699Z","etag":null,"topics":["csharp","snippets","snippets-collection","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=nikiforovall.surround-with-csharp","language":"TypeScript","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/NikiforovAll.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}},"created_at":"2020-06-24T10:26:30.000Z","updated_at":"2024-03-31T03:18:33.000Z","dependencies_parsed_at":"2023-01-31T16:45:34.166Z","dependency_job_id":null,"html_url":"https://github.com/NikiforovAll/surround-with-csharp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/NikiforovAll/surround-with-csharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikiforovAll%2Fsurround-with-csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikiforovAll%2Fsurround-with-csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikiforovAll%2Fsurround-with-csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikiforovAll%2Fsurround-with-csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikiforovAll","download_url":"https://codeload.github.com/NikiforovAll/surround-with-csharp/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikiforovAll%2Fsurround-with-csharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29817840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"last_error":"SSL_read: 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":["csharp","snippets","snippets-collection","vscode","vscode-extension"],"created_at":"2024-10-09T19:40:03.496Z","updated_at":"2026-02-25T10:38:51.441Z","avatar_url":"https://github.com/NikiforovAll.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Surround with CSharp\n\nBrings support of surround-with functionality to vscode for C#. Inspiration comes from from *Visual Studio 2019*.\n\n**Blog post:** [nikiforovall.github.io/productivity/csharp/vscode/2020/08/21/surround-with-csharp](https://nikiforovall.github.io/productivity/csharp/vscode/2020/08/21/surround-with-csharp.html)\n\n## Features\n\n* You can surround you code based on two approaches:\n  * Trigger snippet insertion as a Command\n  * Trigger snippet insertion as a CompletionItem\n\n## Supported Snippets\n\n| Snippet        | Alias           | Keybinding          |\n|----------------|-----------------|---------------------|\n| namespace      | #namespace      | CTRL+SHIFT+S N      |\n| class          | #class          |                     |\n| interface      | #interface      |                     |\n| struct         | #struct         |                     |\n| enum           | #enum           |                     |\n| if             | #if             | CTRL+SHIFT+S I      |\n| dif            | #dif            |                     |\n| else           | #else           | CTRL+SHIFT+S E      |\n| do             | #do             | CTRL+SHIFT+S D      |\n| while          | #while          | CTRL+SHIFT+S W      |\n| for            | #for            | CTRL+SHIFT+S F      |\n| foreach        | #foreach        | CTRL+SHIFT+S CTRL+F |\n| reverse for    | #forr           |                     |\n| try-catch      | #try            | CTRL+SHIFT+S T      |\n| try-finally    | #tryf           | CTRL+SHIFT+S CTRL+T |\n| lock           | #lock           | CTRL+SHIFT+S L      |\n| checked        | #checked        |                     |\n| unchecked      | #unchecked      |                     |\n| unsafe         | #unsafe         |                     |\n| using          | #using          |                     |\n| region         | #region         |                     |\n| method         | #method         | CTRL+SHIFT+S CTRL+M |\n| local-function | #local-function | CTRL+SHIFT+S M      |\n\n### Demo: Surround via command\n\n\u003c!-- ![surround-with-csharp-demo1](./images/surr-w-cs-d1.gif) --\u003e\n![surr-w-cs-d1](https://user-images.githubusercontent.com/8037439/90891007-af748b80-e3c3-11ea-8b38-435acaad56ce.gif)\n\n### Demo: Surround via CompletionItem\n\n\u003c!-- ![surround-with-csharp-demo1](./images/surr-w-cs-d2.gif) --\u003e\n![surr-w-cs-d2](https://user-images.githubusercontent.com/8037439/90891009-b13e4f00-e3c3-11ea-8285-6243d4601a99.gif)\n\nAction             | Alias                          | Shortcut\n-------------------|--------------------------------|-------------------------------------\nC#: Surround With  | `surround.with`                | `CTRL + SHIFT + S, CTRL + SHIFT + S`\nTrigger completion | `editor.action.triggerSuggest` | `CTRL + SPACE`\n\n## Known Issues\n\n## Release Notes\n\nPlease see [CHANGELOG.md](./CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikiforovall%2Fsurround-with-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikiforovall%2Fsurround-with-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikiforovall%2Fsurround-with-csharp/lists"}