Repository navigation
Description
🤖 This pull request was created by Repo Assist, an automated AI assistant.
Summary
Adds a .editorconfig file that documents and enforces the coding conventions already used throughout the codebase. EditorConfig is supported by Visual Studio, VS Code, Rider, and most modern editors — no new tools or dependencies are required.
What it does
- All files: UTF-8, CRLF line endings, final newline, trimmed trailing whitespace
- C# / XAML / project files: 4-space indentation (matching existing code)
- YAML / JSON / Markdown: 2-space indentation
- C# style suggestions: file-scoped namespaces, null propagation, object initializers — these match what the codebase already uses; surfaced as IDE hints, not errors
Why
Without an EditorConfig:
- Different editors may introduce mixed tabs/spaces or inconsistent line endings
- New contributors have to infer style by reading existing files
- There's no canonical reference for code formatting
With EditorConfig, any editor that opens the project automatically uses the correct style — no team-wide configuration required.
Test Status
This change only adds a configuration file; no code is modified. The build is unaffected.
- ✅ No C# source files changed
- ✅ Build unchanged
- ✅
.editorconfigis an editor hint — it cannot break anything
Note
🔒 Integrity filter blocked 1 item
The following item were blocked because they don't meet the GitHub integrity level.
- Detect camera is being used by another application and automatically turn on #21
list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
To allow these resources, lower min-integrity in your GitHub frontmatter:
tools:
github:
min-integrity: approved # merged | approved | unapproved | noneGenerated by Repo Assist · ● 2.1M · ◷
To install this agentic workflow, run
gh aw add githubnext/agentics/workflows/repo-assist.md@cbb46ab386962aa371045839fc9998ee4e97ca64
Note
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch repo-assist/eng-editorconfig-2026-07-09-4befd29b03a50d3f.
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch preview (97 of 97 lines)
From 019ad6f0d13ff5712030ff521c53ced205a96a00 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]" <github-actions[bot]@users.noreply.github.com>
Date: Thu, 9 Jul 2026 13:47:03 +0000
Subject: [PATCH] eng: add .editorconfig for consistent code style
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Adds an EditorConfig file that documents and enforces the existing
code style (4-space indentation, CRLF line endings, UTF-8 encoding)
across all editors and IDEs that support the EditorConfig standard.
Also adds C# style preferences (file-scoped namespaces, var usage,
expression-bodied properties, null propagation) as suggestions —
these match what the codebase already uses and will be surfaced
as IDE hints without breaking any builds.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
.editorconfig | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 .editorconfig
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..7403d5c
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,64 @@
+# EditorConfig: https://editorconfig.org
+root = true
+
+[*]
+charset = utf-8
+end_of_line = crlf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.{cs,xaml,csproj,sln,props,targets}]
+indent_style = space
+indent_size = 4
+
+[*.{xml,yml,yaml,json,md}]
+indent_style = space
+indent_size = 2
+
+[*.md]
+trim_trailing_whitespace = false
+
+# C# coding style
+[*.cs]
+# New-line preferences
+csharp_new_line_before_open_brace = all
+csharp_new_line_before_else = true
+csharp_new_line_before_catch = true
+csharp_new_line_before_finally = true
+
+# Indentation preferences
+csharp_indent_case_contents = true
+csharp_indent_switch_labels = true
+
+# Space preferences
+csharp_space_after_cast = false
+csharp_space_before_colon_in_inheritance_clause = true
+csharp_space_after_colon_in_inheritance_clause = true
+csharp_space_around_binary_operator
... (truncated)
Activity
shanselman commentedon Aug 8, 2026
Style-hint configuration is low-value repository churn for this small codebase.