Skip to content

Conversation

@lukashermansson
Copy link
Contributor

@lukashermansson lukashermansson commented Dec 4, 2025

This fixes an issue discovered recently when working in a project where the .editorconfig and the dotnet project was in a subfolder to the "project root" (the location I was opening nvim from)

It lets csharpier know about the location of the file its currently formatting, and that seems to be enough to have cshapier respect the editorconfig settings, like it would if you would run the tool standalone where it modifies the files in place eg; dotnet csharpier format .

The setting is documented here:
https://csharpier.com/docs/CLI#commands

repo with a demo repo of what case this solves:
https://github.com/lukashermansson/csharpier-discrepency-demo

@github-actions github-actions bot requested a review from stevearc December 4, 2025 20:40
Copy link
Owner

@stevearc stevearc left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@stevearc stevearc merged commit 9b8fa5e into stevearc:master Dec 14, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants