{"id":13492590,"url":"https://github.com/yuv4ik/vsmac_code_snippets","last_synced_at":"2025-08-14T12:36:29.526Z","repository":{"id":75897270,"uuid":"159558838","full_name":"yuv4ik/vsmac_code_snippets","owner":"yuv4ik","description":"Collection of useful code snippets (shortcuts) to reduce the amount of boilerplate code typing.","archived":false,"fork":false,"pushed_at":"2018-11-28T22:01:42.000Z","size":557,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T13:03:31.082Z","etag":null,"topics":["code-snippets","csharp","fsharp","monodevelop","visual-studio-for-mac","xamarin","xamarin-forms"],"latest_commit_sha":null,"homepage":"https://smellyc0de.wordpress.com/2018/11/29/anatomy-of-code-snippets-in-visual-studio-for-mac/","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/yuv4ik.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}},"created_at":"2018-11-28T20:10:49.000Z","updated_at":"2022-02-24T18:17:35.000Z","dependencies_parsed_at":"2023-07-12T00:16:48.066Z","dependency_job_id":null,"html_url":"https://github.com/yuv4ik/vsmac_code_snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yuv4ik/vsmac_code_snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuv4ik%2Fvsmac_code_snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuv4ik%2Fvsmac_code_snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuv4ik%2Fvsmac_code_snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuv4ik%2Fvsmac_code_snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuv4ik","download_url":"https://codeload.github.com/yuv4ik/vsmac_code_snippets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuv4ik%2Fvsmac_code_snippets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265810135,"owners_count":23831946,"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":["code-snippets","csharp","fsharp","monodevelop","visual-studio-for-mac","xamarin","xamarin-forms"],"created_at":"2024-07-31T19:01:07.340Z","updated_at":"2025-07-18T18:34:21.947Z","avatar_url":"https://github.com/yuv4ik.png","language":null,"funding_links":[],"categories":["Snippets"],"sub_categories":[],"readme":"# VS for Mac Code Snippets\n\nIs a collection of useful code snippets (shortcuts) to reduce the amount of boilerplate code typing.\n\n## What is a code snippet?\n\u003e Code snippets are ready-made snippets of code you can quickly insert into your code.\n\nThere are a couple of code snippets that are shipped with Visual Studio:\n\n```\nctor - Creates a constructor for the containing class.\t\nprop - Creates an auto-implemented property declaration.\nforr - Creates a for loop that decrements the loop variable after each iteration.\n```\n\nMore information and the full list of built-in code snippets can be found in the [official docs](https://docs.microsoft.com/en-us/visualstudio/mac/snippets).\n\n## How to add a code snippet\n\u003e Visual Studio \u003e Preferences \u003e Text Editor \u003e Code Snippets\n\n![Demo](https://github.com/yuv4ik/vsmac_code_snippets/raw/master/screenshots/vs_mac_add_code_snippet.png)\n\nAlternatively you can copy all `*.xml` files from `/snippets/$lang$` to `~/Library/VisualStudio⁩/{version}/Snippets`.\n\n## How to use a code snippet?\nSimply type the `shortcut` for example `ctor` and double press the `Tab` key.\n\n## The snippets\n### C#\n| Shortcut        | Description\n| ------------- |:-------------:\n| dw            | Template for `Debug.WriteLine($)`\n| classnpc      | Template for a class implementing `INotifyPropertyChanged`.\n| measure       | Template for measuring execution time using Stopwatch\n| propb         | Template for a `BindableProperty`\n| propnpc         | Template for a Property with `INotifyPropertyChanged`\n\n*Please note that you can set your own shortcut and customize the snippet according to your needs.*\n\n## How to contribute\nIf your favorite code snippet is not in the list you are more than welcome to contribute! \u003cbr/\u003ePlease follow the next simple steps:\n- Create a snippet using `VS for Mac` or copy an existing one from `~/Library/VisualStudio⁩/{version}/Snippets` to `vsmac_code_snippets/snippets/$lang$` directory. \n- Update the `README.md`.\n- Create a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuv4ik%2Fvsmac_code_snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuv4ik%2Fvsmac_code_snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuv4ik%2Fvsmac_code_snippets/lists"}