{"id":22343301,"url":"https://github.com/rabadash8820/vseditorconfig","last_synced_at":"2026-02-13T13:49:26.460Z","repository":{"id":95443092,"uuid":"87349914","full_name":"Rabadash8820/VsEditorConfig","owner":"Rabadash8820","description":"Contains the .editorconfig settings for my Visual Studio projects, which could be useful to other people.","archived":false,"fork":false,"pushed_at":"2025-03-04T06:04:53.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T15:13:00.144Z","etag":null,"topics":["c-sharp","dotnet","dotnet-core","dotnet-framework","dotnet-standard","dotnetcore","editorconfig","preferences","setting","settings","style","style-guide","style-preferences","styleguide","visual-basic","visual-studio"],"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/Rabadash8820.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":"2017-04-05T19:44:49.000Z","updated_at":"2025-03-04T06:04:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f008051f-e294-46d6-bfd1-43f8f215d40d","html_url":"https://github.com/Rabadash8820/VsEditorConfig","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/Rabadash8820%2FVsEditorConfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rabadash8820%2FVsEditorConfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rabadash8820%2FVsEditorConfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rabadash8820%2FVsEditorConfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rabadash8820","download_url":"https://codeload.github.com/Rabadash8820/VsEditorConfig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586244,"owners_count":21128998,"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":["c-sharp","dotnet","dotnet-core","dotnet-framework","dotnet-standard","dotnetcore","editorconfig","preferences","setting","settings","style","style-guide","style-preferences","styleguide","visual-basic","visual-studio"],"created_at":"2024-12-04T08:15:44.224Z","updated_at":"2026-02-13T13:49:21.433Z","avatar_url":"https://github.com/Rabadash8820.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Visual Studio EditorConfig\n\n## About\n\nMost sources on the internet recommend checking an `.editorconfig` file into every repository, much like a `package.json` or `Nuget.config` file. This is definitely valid for team or open-source projects, where multiple devs collaborate with different personal coding styles. However, you will likely be using the same quality/style preferences for all of your own personal/private projects/repos. Therefore, to avoid duplicating these preferences into every new repository (a nightmare to update if your quality/style preferences ever change), you can create a single `.editorconfig` file in its own repository, and have your various repos utilize that one. Essentially, that `.editorconfig` becomes one of the many [\"dotfiles\"](https://dotfiles.github.io/) that define your own personal coding environment.\n\nThis repository contains such an `.editorconfig`. I developed it for my own projects, but I hope that my style preferences are general enough to be of use to any Visual Studio project, in any repository. If not, maybe this repo will serve as a point of reference for you to make your own `.editorconfig`!\n\n## Usage\n\nSuppose you have the following directory structure:\n\n```txt\nroot-directory\\\n    VisualStudioEditorConfig\\\n        .editorconfig\n    Repo1\\\n    Repo2\\\n    RepoGroup\\\n        Repo3\\\n        Repo4\\\n    ...\n```\n\nIf you want to use the same style preferences in all of your repos (Repo1, Repo2, Repo3, Repo4, etc.), then you should put the .editorconfig file in the \"root-directory\\\" folder.  Unfortunately, the .editorconfig file was cloned into the subfolder \"VsEditorConfig\\\".  You could copy the file to root-directory, but you would have to re-copy it everytime your style preferences change.  The solution is to create a symbolic link in root-directory to the versioned .editorconfig.\n\nOn Windows, run the following command at an elevated command prompt.  If you do not use an elevated command prompt (i.e., a command prompt opened with \"Run as Administrator\"), then you will get the error: `You do not have sufficient privilege to perform this operation.`\n\n```bat\nMKLINK \"root-directory\\.editorconfig\" \"root-directory\\VsEditorConfig\\.editorconfig\"\n```\n\nOn MacOS/Linux, run the following command:\n\n```sh\nln -s \"root-directory/VsEditorConfig/.editorconfig\" \"root-directory/.editorconfig\"\n```\n\nSubsitute the above paths with those needed for your particular directory structure (absolute paths work best).  Once the link is created, you will be able to update the `.editorconfig` with `git pull` as normal, and the latest style preferences will then be available to all of your repositories (after restarting Visual Studio).\n\nIf you don't like any of my style/formatting preferences, then you can either fork my `.editorconfig` to use it as a starting point and modify it to fit your particular conventions, or add a separate `.editorconfig` with your overrides to the individual repos that need those overrides.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabadash8820%2Fvseditorconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frabadash8820%2Fvseditorconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabadash8820%2Fvseditorconfig/lists"}