{"id":13732223,"url":"https://github.com/J0rgeSerran0/vscode-csharp-snippets","last_synced_at":"2025-05-08T06:31:51.110Z","repository":{"id":51603494,"uuid":"96704889","full_name":"J0rgeSerran0/vscode-csharp-snippets","owner":"J0rgeSerran0","description":"Extension of C# Snippets for Visual Studio Code","archived":false,"fork":false,"pushed_at":"2022-08-02T13:53:58.000Z","size":19727,"stargazers_count":29,"open_issues_count":4,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-20T05:33:58.923Z","etag":null,"topics":["asp-net-core","csharp","ef-core","grpc","net-5","net-core","signalr-core","snippets","visual-studio-code","visual-studio-code-extensions"],"latest_commit_sha":null,"homepage":"","language":null,"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/J0rgeSerran0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-09T18:59:12.000Z","updated_at":"2024-04-18T16:54:53.000Z","dependencies_parsed_at":"2022-08-22T14:11:11.742Z","dependency_job_id":null,"html_url":"https://github.com/J0rgeSerran0/vscode-csharp-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0rgeSerran0%2Fvscode-csharp-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0rgeSerran0%2Fvscode-csharp-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0rgeSerran0%2Fvscode-csharp-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J0rgeSerran0%2Fvscode-csharp-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/J0rgeSerran0","download_url":"https://codeload.github.com/J0rgeSerran0/vscode-csharp-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213757424,"owners_count":15634176,"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":["asp-net-core","csharp","ef-core","grpc","net-5","net-core","signalr-core","snippets","visual-studio-code","visual-studio-code-extensions"],"created_at":"2024-08-03T02:01:49.607Z","updated_at":"2024-11-14T23:31:53.027Z","avatar_url":"https://github.com/J0rgeSerran0.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# C# Snippets for Visual Studio Code\n\n![Downloads](https://img.shields.io/visual-studio-marketplace/d/jorgeserrano.vscode-csharp-snippets) \n![Installs](https://img.shields.io/visual-studio-marketplace/i/jorgeserrano.vscode-csharp-snippets) \n[![Visual Studio Code Extension](https://img.shields.io/visual-studio-marketplace/v/jorgeserrano.vscode-csharp-snippets?label=Version)](https://marketplace.visualstudio.com/items?itemName=jorgeserrano.vscode-csharp-snippets) \n![Issues](https://img.shields.io/github/issues/J0rgeSerran0/vscode-csharp-snippets?color=B22DFF) \n![Issues Pull Requests](https://img.shields.io/github/issues-pr/J0rgeSerran0/vscode-csharp-snippets?color=B22DFF)\n\n\n![alt text](https://github.com/J0rgeSerran0/vscode-csharp-snippets/raw/master/images/vscode-csharp-snippets.png \"C# Snippets\")\n\nThis extension for Visual Studio Code adds snippets for C#.\n\nYou can find this extension in the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=jorgeserrano.vscode-csharp-snippets).\n\nSee the [CHANGELOG](CHANGELOG.md) for the latest changes included.\n\n\n## Usage\nPut the cursor on the C# file.\n\nType part of a snippet, press `tab`, and the snippet unfolds.\n\nIf you have problems to see the snippets, press `Ctrl`+`Space` (Windows, Linux) or `Cmd`+`Space` (OSX).\n\n(**see the [TUTORIALS](TUTORIALS.md) to know more**)\n\n\n### C# general snippets\n```csharp\n#helloworld\n~\ncclear\ncgo\nclass\nclassa\nclassd\nconst\ncr\ncrk\ncsproj_1.0\ncsproj_1.1\ncsproj_2.0\ncsproj_2.1\ncsproj_3.1\ncsproj_5\ncwl\ndowhile\nelse\nenum\nexception\nfor\nforeach\nguid\nguidn\nif\nifelse\niif\nimmutable\ninterface\nlinq_distinct\nlinq_where\nlock\nmain\nmethod\nmethod_async\nmsgbox\nmstest\nnamespace\nprop\npropi\npropinit\npropr\npum\npvm\nrecord\nsingleton\nsingletonl\nsingletonts\nstruct\nswitch\ntls\ntodo\ntry\ntryf\nusing\nwhile\n```\n\n### Visual Studio snippets\n```csharp\nsln_2017\nsln_2019\n```\n\n### ASP.NET Core C# snippets\n```csharp\nac_#helloworld_Startup\nac_#helloworld_WebApp\nac_#helloworld_WebApi\nac_action\nac_comment\nac_conf\nac_conf_file\nac_controller\nac_csproj_2.0\nac_csproj_2.1\nac_csproj_3.1\nac_csproj_5\nac_startupenv\n```\n\n### ASP.NET Core Web Api C# snippets\n```csharp\napi_controller\napi_delete\napi_get\napi_put\napi_post\n```\n\n### .NET Extensions\n```csharp\nex_md5_from_stream\nex_stream_to_string\nex_string_to_stream\n```\n\n### gRPC C# snippets (.NET 5)\n```csharp\ngRPC_client_csproj\ngRPC_client_program\ngRPC_proto\ngRPC_server_csproj\ngRPC_server_program\ngRPC_server_service\ngRPC_server_settings\ngRPC_server_startup\n```\n\n### ASP.NET Core Razor C# snippets\n```csharp\nrz_code\nrz_comment\nrz_directive\nrz_dowhile\nrz_for\nrz_foreach\nrz_functions\nrz_if\nrz_ifelse\nrz_implements\nrz_inherits\nrz_inject\nrz_model\nrz_namespace\nrz_raw\nrz_renderbody\nrz_switch\nrz_try\nrz_using\nrz_viewbag\nrz_viewdata\nrz_while\n```\n\n### XML Comments snippets\n```csharp\nxml_\u003cc\u003e\nxml_\u003ccode\u003e\nxml_\u003cexample\u003e\nxml_\u003cexception\u003e\nxml_\u003cinclude\u003e\nxml_\u003clist\u003e\nxml_\u003cpara\u003e\nxml_\u003cparam\u003e\nxml_\u003cparamref\u003e\nxml_\u003cpermission\u003e\nxml_\u003cremarks\u003e\nxml_\u003creturns\u003e\nxml_\u003csee\u003e\nxml_\u003cseealso\u003e\nxml_\u003csummary\u003e\nxml_\u003ctypeparam\u003e\nxml_\u003ctypeparamref\u003e\nxml_\u003cvalue\u003e\n```\n\n\n## Installation\n\n1. Install Visual Studio Code 1.5.0 or higher\n2. Launch Visual Studio Code\n3. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (OSX)\n4. Select `Install Extension`\n5. Search and choose the extension\n6. Reload Visual Studio Code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJ0rgeSerran0%2Fvscode-csharp-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJ0rgeSerran0%2Fvscode-csharp-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJ0rgeSerran0%2Fvscode-csharp-snippets/lists"}