RehanSaeed / EditorConfig

A very generic .editorconfig file supporting .NET, C#, VB and web technologies.
MIT License
629 stars 171 forks source link

Support for .razor files #68

Closed kirkone closed 2 years ago

kirkone commented 2 years ago

Maybe I did something wrong but is there a way to be able to use all the c# settings also in *.razor files?

RehanSaeed commented 2 years ago

The .editorconfig does not currently have special support for this file type and relies on the defaults:

[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

Is there something that should be changed?

kirkone commented 2 years ago

The default rules are working fine. What I want is the C# rules work in @code blocks.

When I got it right this might be related to this issue: https://github.com/dotnet/razor-tooling/issues/4406

So, I think we have to wait for this to be completed.

I wonder if the will also bring .razor support for dotnet build

RehanSaeed commented 2 years ago

Looks like all we can do is wait. Closing for now but feel free to reopen if there is something to do here. Thank you!