Skip to content

fix: match .editorconfig to actual practice#2259

Open
brunom wants to merge 1 commit into
OpenRakis:masterfrom
brunom:fix/editorconfig
Open

fix: match .editorconfig to actual practice#2259
brunom wants to merge 1 commit into
OpenRakis:masterfrom
brunom:fix/editorconfig

Conversation

@brunom

@brunom brunom commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Now Visual Studio formatting leaves files unchanged. Tested on src/Spice86/ViewModels/DisassemblyViewModel.cs

Copilot AI review requested due to automatic review settings July 12, 2026 22:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s .editorconfig C# newline/brace formatting rules with the stated goal of aligning Visual Studio formatting behavior with existing code so that formatting does not introduce diffs.

Changes:

  • Switches several C# “new line preferences” settings (open braces, catch/else/finally, and initializer member layout) to new-line style defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .editorconfig
Comment on lines +133 to +138
csharp_new_line_before_open_brace = all
csharp_new_line_before_catch = true
csharp_new_line_before_else = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_before_members_in_object_initializers = true
@maximilien-noal maximilien-noal added the CI/CD Related to CI/CD label Jul 13, 2026
@maximilien-noal
maximilien-noal self-requested a review July 13, 2026 19:12
@maximilien-noal

Copy link
Copy Markdown
Member

@brunom would not this break the java style code blocks used in all files ?

@brunom

brunom commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

I found out .editorconfig didn't match DisassemblyViewModel.cs while fixing #2260
The Copilot reviewer here says other files use other styles. Maybe different .editorconfig files per folder or sub project would match the files on disk. Or we could reformat everything to one style. I just wanted to raise the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD Related to CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants